Poco::Net on VS2010

I’m trying to convert an older project to VS2010 and I am having trouble at the linking phase. It looks like the problem lies with the Poco::Net package:

  
  
01: unresolved external symbol "public: __thiscall Poco::IllegalStateException::IllegalStateException(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0IllegalStateException@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)  
2>PocoNetmt.lib(HTTPResponse.obj) : error LNK2001: unresolved external symbol "public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl Poco::DateTimeFormatter::format(class Poco::Timestamp const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int)" (?format@DateTimeFormatter@Poco@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABVTimestamp@2@ABV34@H@Z)  
2>PocoNetmt.lib(HTTPCookie.obj) : error LNK2001: unresolved external symbol "public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl Poco::DateTimeFormatter::format(class Poco::Timestamp const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int)" (?format@DateTimeFormatter@Poco@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABVTimestamp@2@ABV34@H@Z)  
2>PocoNetmt.lib(SocketAddress.obj) : error LNK2001: unresolved external symbol "public: __thiscall Poco::InvalidArgumentException::InvalidArgumentException(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0InvalidArgumentException@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)  
2>PocoNetmt.lib(IPAddress.obj) : error LNK2001: unresolved external symbol "public: __thiscall Poco::InvalidArgumentException::InvalidArgumentException(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0InvalidArgumentException@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)  
2>PocoNetmt.lib(StreamSocket.obj) : error LNK2001: unresolved external symbol "public: __thiscall Poco::InvalidArgumentException::InvalidArgumentException(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0InvalidArgumentException@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)  
2>PocoNetmt.lib(SocketAddress.obj) : error LNK2001: unresolved external symbol "public: void __thiscall Poco::RefCountedObject::duplicate(void)const " (?duplicate@RefCountedObject@Poco@@QBEXXZ)  
2>PocoNetmt.lib(IPAddress.obj) : error LNK2001: unresolved external symbol "public: void __thiscall Poco::RefCountedObject::duplicate(void)const " (?duplicate@RefCountedObject@Poco@@QBEXXZ)  
2>PocoNetmt.lib(Socket.obj) : error LNK2001: unresolved external symbol "public: void __thiscall Poco::RefCountedObject::duplicate(void)const " (?duplicate@RefCountedObject@Poco@@QBEXXZ)  
2>PocoNetmt.lib(SocketAddress.obj) : error LNK2001: unresolved external symbol "public: __thiscall Poco::NotImplementedException::NotImplementedException(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0NotImplementedException@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)  
2>PocoNetmt.lib(HTTPChunkedStream.obj) : error LNK2001: unresolved external symbol "public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl Poco::NumberFormatter::formatHex(__int64)" (?formatHex@NumberFormatter@Poco@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_J@Z)  
2>PocoNetmt.lib(NameValueCollection.obj) : error LNK2001: unresolved external symbol "public: __thiscall Poco::NotFoundException::NotFoundException(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0NotFoundException@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)  
2>PocoNetmt.lib(NetException.obj) : error LNK2001: unresolved external symbol "public: __thiscall Poco::IOException::IOException(void)" (??0IOException@Poco@@QAE@XZ)  
2>PocoNetmt.lib(NetException.obj) : error LNK2001: unresolved external symbol "public: __thiscall Poco::IOException::IOException(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0IOException@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)  
2>PocoNetmt.lib(SocketImpl.obj) : error LNK2001: unresolved external symbol "public: __thiscall Poco::IOException::IOException(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0IOException@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)  
2>PocoNetmt.lib(DNS.obj) : error LNK2001: unresolved external symbol "public: __thiscall Poco::IOException::IOException(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0IOException@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)  
2>PocoNetmt.lib(NetException.obj) : error LNK2001: unresolved external symbol "public: __thiscall Poco::IOException::IOException(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0IOException@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z)  
2>PocoNetmt.lib(NetException.obj) : error LNK2001: unresolved external symbol "public: __thiscall Poco::IOException::IOException(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class Poco::Exception const &)" (??0IOException@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABVException@1@@Z)  
2>PocoNetmt.lib(SocketImpl.obj) : error LNK2001: unresolved external symbol "public: __thiscall Poco::TimeoutException::TimeoutException(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0TimeoutException@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z)  
2>PocoNetmt.lib(SocketImpl.obj) : error LNK2001: unresolved external symbol "public: __thiscall Poco::TimeoutException::TimeoutException(void)" (??0TimeoutException@Poco@@QAE@XZ)  
2>PocoNetmt.lib(SocketImpl.obj) : error LNK2001: unresolved external symbol "public: __thiscall Poco::InvalidArgumentException::InvalidArgumentException(void)" (??0InvalidArgumentException@Poco@@QAE@XZ)  
2>PocoNetmt.lib(DNS.obj) : error LNK2001: unresolved external symbol "public: __thiscall Poco::SystemException::SystemException(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0SystemException@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)  
2>bin\OneTSQ_vs2010.exe : fatal error LNK1120: 15 unresolved externals  
  

I’ve checked the Additional Dependencies field and PocoNetmt.lib is definitely there. Anyone have any advice on how to fix this?

Thanks,
-Elie

anyone figure this out?

yes,please,anyone? ???

Sorry if this is obvious, but are you using the VC 2010 version of openframeworks?

You can get the poco swap here that’s need for 2010: http://forum.openframeworks.cc/t/getting-of-vs2008-to-compile-in-vs2010/3899/0

thank you for that,but i’m using that swap already. i’m tryin to using ofxMailutils addon from arturo,that getting bunch of errors

  
main.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification  
2>PocoNetmtd.lib(MailMessage.obj) : error LNK2019: unresolved external symbol "public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl Poco::DateTimeFormatter::format(class Poco::Timestamp const &,class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&,int)" (?format@DateTimeFormatter@Poco@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABVTimestamp@2@ABV34@H@Z) referenced in function "public: void __thiscall Poco::Net::MailMessage::setDate(class Poco::Timestamp const &)" (?setDate@MailMessage@Net@Poco@@QAEXABVTimestamp@3@@Z)  
2>PocoNetmtd.lib(FilePartSource.obj) : error LNK2019: unresolved external symbol "public: __thiscall Poco::OpenFileException::OpenFileException(class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&)" (??0OpenFileException@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: __thiscall Poco::Net::FilePartSource::FilePartSource(class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&)" (??0FilePartSource@Net@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)  
2>PocoNetmtd.lib(SocketAddress.obj) : error LNK2019: unresolved external symbol "public: __thiscall Poco::InvalidArgumentException::InvalidArgumentException(class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&)" (??0InvalidArgumentException@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: __thiscall Poco::Net::SocketAddress::SocketAddress(class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&)" (??0SocketAddress@Net@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)  
2>PocoNetmtd.lib(SocketStream.obj) : error LNK2001: unresolved external symbol "public: __thiscall Poco::InvalidArgumentException::InvalidArgumentException(class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&)" (??0InvalidArgumentException@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)  
2>PocoNetmtd.lib(StreamSocket.obj) : error LNK2001: unresolved external symbol "public: __thiscall Poco::InvalidArgumentException::InvalidArgumentException(class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&)" (??0InvalidArgumentException@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)  
2>PocoNetmtd.lib(IPAddress.obj) : error LNK2001: unresolved external symbol "public: __thiscall Poco::InvalidArgumentException::InvalidArgumentException(class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&)" (??0InvalidArgumentException@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)  
2>PocoNetmtd.lib(SocketAddress.obj) : error LNK2019: unresolved external symbol "public: __thiscall Poco::NotImplementedException::NotImplementedException(class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&)" (??0NotImplementedException@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "protected: void __thiscall Poco::Net::SocketAddress::init(class Poco::Net::IPAddress const &,unsigned short)" (?init@SocketAddress@Net@Poco@@IAEXABVIPAddress@23@G@Z)  
2>PocoNetmtd.lib(NetException.obj) : error LNK2019: unresolved external symbol "public: __thiscall Poco::IOException::IOException(void)" (??0IOException@Poco@@QAE@XZ) referenced in function "public: __thiscall Poco::Net::NetException::NetException(void)" (??0NetException@Net@Poco@@QAE@XZ)  
2>PocoNetmtd.lib(NetException.obj) : error LNK2019: unresolved external symbol "public: __thiscall Poco::IOException::IOException(class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&)" (??0IOException@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: __thiscall Poco::Net::NetException::NetException(class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&)" (??0NetException@Net@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)  
2>PocoNetmtd.lib(DNS.obj) : error LNK2001: unresolved external symbol "public: __thiscall Poco::IOException::IOException(class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&)" (??0IOException@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)  
2>PocoNetmtd.lib(SocketImpl.obj) : error LNK2001: unresolved external symbol "public: __thiscall Poco::IOException::IOException(class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&)" (??0IOException@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)  
2>PocoNetmtd.lib(NetException.obj) : error LNK2019: unresolved external symbol "public: __thiscall Poco::IOException::IOException(class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&,class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&)" (??0IOException@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z) referenced in function "public: __thiscall Poco::Net::NetException::NetException(class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&,class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&)" (??0NetException@Net@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z)  
2>PocoNetmtd.lib(NetException.obj) : error LNK2019: unresolved external symbol "public: __thiscall Poco::IOException::IOException(class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&,class Poco::Exception const &)" (??0IOException@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABVException@1@@Z) referenced in function "public: __thiscall Poco::Net::NetException::NetException(class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&,class Poco::Exception const &)" (??0NetException@Net@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABVException@2@@Z)  
2>PocoNetmtd.lib(NameValueCollection.obj) : error LNK2019: unresolved external symbol "public: __thiscall Poco::NotFoundException::NotFoundException(class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&)" (??0NotFoundException@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20& __thiscall Poco::Net::NameValueCollection::operator[](class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&)const " (??ANameValueCollection@Net@Poco@@QBEABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV34@@Z)  
2>PocoNetmtd.lib(QuotedPrintableDecoder.obj) : error LNK2019: unresolved external symbol "public: __thiscall Poco::DataFormatException::DataFormatException(class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&)" (??0DataFormatException@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "private: virtual int __thiscall Poco::Net::QuotedPrintableDecoderBuf::readFromDevice(void)" (?readFromDevice@QuotedPrintableDecoderBuf@Net@Poco@@EAEHXZ)  
2>PocoNetmtd.lib(DNS.obj) : error LNK2019: unresolved external symbol "public: __thiscall Poco::SystemException::SystemException(class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&)" (??0SystemException@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function __catch$?lockImpl@MutexImpl@Poco@@IAEXXZ$0  
2>PocoNetmtd.lib(SocketImpl.obj) : error LNK2019: unresolved external symbol "public: __thiscall Poco::TimeoutException::TimeoutException(class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&,class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&)" (??0TimeoutException@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z) referenced in function "public: virtual void __thiscall Poco::Net::SocketImpl::connect(class Poco::Net::SocketAddress const &,class Poco::Timespan const &)" (?connect@SocketImpl@Net@Poco@@UAEXABVSocketAddress@23@ABVTimespan@3@@Z)  
2>PocoNetmtd.lib(SocketImpl.obj) : error LNK2019: unresolved external symbol "public: __thiscall Poco::TimeoutException::TimeoutException(void)" (??0TimeoutException@Poco@@QAE@XZ) referenced in function "public: virtual int __thiscall Poco::Net::SocketImpl::receiveBytes(void *,int,int)" (?receiveBytes@SocketImpl@Net@Poco@@UAEHPAXHH@Z)  
2>PocoNetmtd.lib(SocketImpl.obj) : error LNK2019: unresolved external symbol "public: __thiscall Poco::InvalidArgumentException::InvalidArgumentException(void)" (??0InvalidArgumentException@Poco@@QAE@XZ) referenced in function "protected: static void __cdecl Poco::Net::SocketImpl::error(int,class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&)" (?error@SocketImpl@Net@Poco@@KAXHABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)  
2>bin\maiTest_debug.exe : fatal error LNK1120: 14 unresolved externals  
2>  
2>Build FAILED.  
2>  
2>Time Elapsed 00:00:31.64  
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========  

yup I am using OF_0062 for VS2010 with the patches from your link, but I am still getting the same errors (see below).

I checked the linker and c++ include directory, they are both looking in the right place.

I also checked the previous forum posts for this issue, doesn’t seem like people use poco on windows…I am attempting to get a webImageLoader working on Windows…

Any help would be much appreciated!

Here are the errors:

  
  
PocoNetmtd.lib(NetException.obj) : error LNK2019: unresolved external symbol "public: __thiscall Poco::IOException::IOException(void)" (??0IOException@Poco@@QAE@XZ) referenced in function "public: __thiscall Poco::Net::NetException::NetException(void)" (??0NetException@Net@Poco@@QAE@XZ)  
2>PocoNetmtd.lib(NetException.obj) : error LNK2019: unresolved external symbol "public: __thiscall Poco::IOException::IOException(class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&)" (??0IOException@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: __thiscall Poco::Net::NetException::NetException(class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&)" (??0NetException@Net@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)  
2>PocoNetmtd.lib(SocketImpl.obj) : error LNK2001: unresolved external symbol "public: __thiscall Poco::IOException::IOException(class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&)" (??0IOException@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)  
2>PocoNetmtd.lib(DNS.obj) : error LNK2001: unresolved external symbol "public: __thiscall Poco::IOException::IOException(class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&)" (??0IOException@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)  
2>PocoNetmtd.lib(NetException.obj) : error LNK2019: unresolved external symbol "public: __thiscall Poco::IOException::IOException(class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&,class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&)" (??0IOException@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z) referenced in function "public: __thiscall Poco::Net::NetException::NetException(class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&,class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&)" (??0NetException@Net@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z)  
2>PocoNetmtd.lib(NetException.obj) : error LNK2019: unresolved external symbol "public: __thiscall Poco::IOException::IOException(class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&,class Poco::Exception const &)" (??0IOException@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABVException@1@@Z) referenced in function "public: __thiscall Poco::Net::NetException::NetException(class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&,class Poco::Exception const &)" (??0NetException@Net@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABVException@2@@Z)  
2>PocoNetmtd.lib(HTTPResponse.obj) : error LNK2019: unresolved external symbol "public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl Poco::DateTimeFormatter::format(class Poco::Timestamp const &,class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&,int)" (?format@DateTimeFormatter@Poco@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABVTimestamp@2@ABV34@H@Z) referenced in function "public: void __thiscall Poco::Net::HTTPResponse::setDate(class Poco::Timestamp const &)" (?setDate@HTTPResponse@Net@Poco@@QAEXABVTimestamp@3@@Z)  
2>PocoNetmtd.lib(HTTPCookie.obj) : error LNK2001: unresolved external symbol "public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl Poco::DateTimeFormatter::format(class Poco::Timestamp const &,class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&,int)" (?format@DateTimeFormatter@Poco@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABVTimestamp@2@ABV34@H@Z)  
2>PocoNetmtd.lib(NameValueCollection.obj) : error LNK2019: unresolved external symbol "public: __thiscall Poco::NotFoundException::NotFoundException(class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&)" (??0NotFoundException@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20& __thiscall Poco::Net::NameValueCollection::operator[](class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&)const " (??ANameValueCollection@Net@Poco@@QBEABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV34@@Z)  
2>PocoNetmtd.lib(HTTPClientSession.obj) : error LNK2019: unresolved external symbol "public: __thiscall Poco::IllegalStateException::IllegalStateException(class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&)" (??0IllegalStateException@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: void __thiscall Poco::Net::HTTPClientSession::setHost(class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&)" (?setHost@HTTPClientSession@Net@Poco@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)  
2>PocoNetmtd.lib(SocketAddress.obj) : error LNK2019: unresolved external symbol "public: __thiscall Poco::InvalidArgumentException::InvalidArgumentException(class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&)" (??0InvalidArgumentException@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: __thiscall Poco::Net::SocketAddress::SocketAddress(class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&)" (??0SocketAddress@Net@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)  
2>PocoNetmtd.lib(IPAddress.obj) : error LNK2001: unresolved external symbol "public: __thiscall Poco::InvalidArgumentException::InvalidArgumentException(class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&)" (??0InvalidArgumentException@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)  
2>PocoNetmtd.lib(StreamSocket.obj) : error LNK2001: unresolved external symbol "public: __thiscall Poco::InvalidArgumentException::InvalidArgumentException(class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&)" (??0InvalidArgumentException@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)  
2>PocoNetmtd.lib(SocketAddress.obj) : error LNK2019: unresolved external symbol "public: __thiscall Poco::NotImplementedException::NotImplementedException(class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&)" (??0NotImplementedException@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "protected: void __thiscall Poco::Net::SocketAddress::init(class Poco::Net::IPAddress const &,unsigned short)" (?init@SocketAddress@Net@Poco@@IAEXABVIPAddress@23@G@Z)  
2>PocoNetmtd.lib(HTTPChunkedStream.obj) : error LNK2019: unresolved external symbol "public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl Poco::NumberFormatter::formatHex(__int64)" (?formatHex@NumberFormatter@Poco@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_J@Z) referenced in function "protected: virtual int __thiscall Poco::Net::HTTPChunkedStreamBuf::writeToDevice(char const *,__int64)" (?writeToDevice@HTTPChunkedStreamBuf@Net@Poco@@MAEHPBD_J@Z)  
2>PocoNetmtd.lib(SocketImpl.obj) : error LNK2019: unresolved external symbol "public: __thiscall Poco::TimeoutException::TimeoutException(class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&,class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&)" (??0TimeoutException@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z) referenced in function "public: virtual void __thiscall Poco::Net::SocketImpl::connect(class Poco::Net::SocketAddress const &,class Poco::Timespan const &)" (?connect@SocketImpl@Net@Poco@@UAEXABVSocketAddress@23@ABVTimespan@3@@Z)  
2>PocoNetmtd.lib(SocketImpl.obj) : error LNK2019: unresolved external symbol "public: __thiscall Poco::TimeoutException::TimeoutException(void)" (??0TimeoutException@Poco@@QAE@XZ) referenced in function "public: virtual int __thiscall Poco::Net::SocketImpl::receiveBytes(void *,int,int)" (?receiveBytes@SocketImpl@Net@Poco@@UAEHPAXHH@Z)  
2>PocoNetmtd.lib(SocketImpl.obj) : error LNK2019: unresolved external symbol "public: __thiscall Poco::InvalidArgumentException::InvalidArgumentException(void)" (??0InvalidArgumentException@Poco@@QAE@XZ) referenced in function "protected: static void __cdecl Poco::Net::SocketImpl::error(int,class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&)" (?error@SocketImpl@Net@Poco@@KAXHABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)  
2>PocoNetmtd.lib(DNS.obj) : error LNK2019: unresolved external symbol "public: __thiscall Poco::SystemException::SystemException(class%20std::basic_string<char,struct%20std::char_traits<char>,class%20std::allocator<char>%20>%20const%20&)" (??0SystemException@Poco@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function __catch$?lockImpl@MutexImpl@Poco@@IAEXXZ$0  
2>bin\imageLoaderExample_debug.exe : fatal error LNK1120: 14 unresolved externals  

I think you are missing the PocoNet library in your project linker settings.

Hi Arturo,

I checked the PocoNet lib and its in the right place right next to the PocoFoundation.

I am guessing the code in the Poco/Include is not compatible with the compiled libs.

I haven’t had a chance to recompile the libs and change the included files, but I am going to try that next.

If possible, can I send you the VS2010 project to check my settings?

Thanks,
Reza

On a side note, I just downloaded VS2008 C++ Express, and recreated/compiled the project and it works!!!

I am guessing there is a version mismatch of Poco’s include headers and the libs in the release for VS2010…

Hope this helps.

Reza

sorry, i don’t have visual studio to test. Sometimes the order in which the libs are setup in the project settings matters, try reordering them to see if that helps

i think so,b’coz i was recompiled the Poco::Net libs with vs2010,but still the same error

Arturo: I tried reordering the libs, but that was still unsuccessful.

Hi Guys,

I had the same problem in VS2010 when trying out arturos ofxhttputils and managed to solve it by downloading poco-library and compiling each lib for multihtreaded dll instead. I think the issue is that the the compiled poco-libararies in OF_0062 are not compatible with the multithreaded dll compilation in the projects settings. all of the other libararies in OF are compiled in /md but the pocolibs come compiled in /mt in the OF FAT for vs2010.

//iman

thanks, will take a look