Overview
Features
Download
Documentation
Community
Add-Ons & Services

Link error (static-mt, amd64, vs2012)

Please post support and help requests here.

Link error (static-mt, amd64, vs2012)

Postby litnsio2 » 11 May 2013, 04:38

I'm writing some program with poco-all (1.4.6p1), vs2012.

To make just one executable file, I configured all projects in my solution static-mt. But I have some link erors like below:

10>PocoFoundationmtd.lib(Thread.obj) : error LNK2019: unresolved external symbol "public: static void __cdecl Poco::ErrorHandler::handle(class Poco::Exception const &)" (?handle@ErrorHandler@Poco@@SAXAEBVException@2@@Z) referenced in function __catch$?runnableEntry@ThreadImpl@Poco@@KAIPEAX@Z$0
10>PocoFoundationmtd.lib(Thread.obj) : error LNK2019: unresolved external symbol "public: static void __cdecl Poco::ErrorHandler::handle(class std::exception const &)" (?handle@ErrorHandler@Poco@@SAXAEBVexception@std@@@Z) referenced in function __catch$?runnableEntry@ThreadImpl@Poco@@KAIPEAX@Z$1
10>PocoFoundationmtd.lib(Thread.obj) : error LNK2019: unresolved external symbol "public: static void __cdecl Poco::ErrorHandler::handle(void)" (?handle@ErrorHandler@Poco@@SAXXZ) referenced in function __catch$?runnableEntry@ThreadImpl@Poco@@KAIPEAX@Z$2
10>PocoNetSSLmtd.lib(SSLManager.obj) : error LNK2019: unresolved external symbol "public: __cdecl Poco::Crypto::X509Certificate::X509Certificate(class Poco::Crypto::X509Certificate const &)" (??0X509Certificate@Crypto@Poco@@QEAA@AEBV012@@Z) referenced in function "public: __cdecl Poco::Net::X509Certificate::X509Certificate(class Poco::Net::X509Certificate const &)" (??0X509Certificate@Net@Poco@@QEAA@AEBV012@@Z)
10>PocoNetSSLmtd.lib(X509Certificate.obj) : error LNK2001: unresolved external symbol "public: __cdecl Poco::Crypto::X509Certificate::X509Certificate(class Poco::Crypto::X509Certificate const &)" (??0X509Certificate@Crypto@Poco@@QEAA@AEBV012@@Z)
10>PocoNetSSLmtd.lib(VerificationErrorArgs.obj) : error LNK2001: unresolved external symbol "public: __cdecl Poco::Crypto::X509Certificate::X509Certificate(class Poco::Crypto::X509Certificate const &)" (??0X509Certificate@Crypto@Poco@@QEAA@AEBV012@@Z)
10>PocoNetSSLmtd.lib(X509Certificate.obj) : error LNK2019: unresolved external symbol "public: __cdecl Poco::Crypto::X509Certificate::X509Certificate(class std::basic_istream<char,struct std::char_traits<char> > &)" (??0X509Certificate@Crypto@Poco@@QEAA@AEAV?$basic_istream@DU?$char_traits@D@std@@@std@@@Z) referenced in function "public: __cdecl Poco::Net::X509Certificate::X509Certificate(class std::basic_istream<char,struct std::char_traits<char> > &)" (??0X509Certificate@Net@Poco@@QEAA@AEAV?$basic_istream@DU?$char_traits@D@std@@@std@@@Z)
10>PocoNetSSLmtd.lib(X509Certificate.obj) : error LNK2019: unresolved external symbol "public: __cdecl Poco::Crypto::X509Certificate::X509Certificate(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0X509Certificate@Crypto@Poco@@QEAA@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: __cdecl Poco::Net::X509Certificate::X509Certificate(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0X509Certificate@Net@Poco@@QEAA@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
10>PocoNetSSLmtd.lib(X509Certificate.obj) : error LNK2019: unresolved external symbol "public: __cdecl Poco::Crypto::X509Certificate::X509Certificate(struct x509_st *)" (??0X509Certificate@Crypto@Poco@@QEAA@PEAUx509_st@@@Z) referenced in function "public: __cdecl Poco::Net::X509Certificate::X509Certificate(struct x509_st *)" (??0X509Certificate@Net@Poco@@QEAA@PEAUx509_st@@@Z)
10>PocoNetSSLmtd.lib(X509Certificate.obj) : error LNK2019: unresolved external symbol "public: __cdecl Poco::Crypto::X509Certificate::X509Certificate(struct x509_st *,bool)" (??0X509Certificate@Crypto@Poco@@QEAA@PEAUx509_st@@_N@Z) referenced in function "public: __cdecl Poco::Net::X509Certificate::X509Certificate(struct x509_st *,bool)" (??0X509Certificate@Net@Poco@@QEAA@PEAUx509_st@@_N@Z)
10>PocoNetSSLmtd.lib(X509Certificate.obj) : error LNK2019: unresolved external symbol "public: void __cdecl Poco::Crypto::X509Certificate::swap(class Poco::Crypto::X509Certificate &)" (?swap@X509Certificate@Crypto@Poco@@QEAAXAEAV123@@Z) referenced in function "public: class Poco::Net::X509Certificate & __cdecl Poco::Net::X509Certificate::operator=(class Poco::Crypto::X509Certificate const &)" (??4X509Certificate@Net@Poco@@QEAAAEAV012@AEBV0Crypto@2@@Z)
10>PocoNetSSLmtd.lib(X509Certificate.obj) : error LNK2019: unresolved external symbol "public: __cdecl Poco::Crypto::X509Certificate::~X509Certificate(void)" (??1X509Certificate@Crypto@Poco@@QEAA@XZ) referenced in function "public: __cdecl Poco::Net::X509Certificate::~X509Certificate(void)" (??1X509Certificate@Net@Poco@@QEAA@XZ)
10>PocoNetSSLmtd.lib(X509Certificate.obj) : error LNK2019: unresolved external symbol "public: void __cdecl Poco::Crypto::X509Certificate::extractNames(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,class std::set<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::less<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > &)const " (?extractNames@X509Certificate@Crypto@Poco@@QEBAXAEAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAV?$set@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@U?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@5@@Z) referenced in function "public: static bool __cdecl Poco::Net::X509Certificate::verify(class Poco::Crypto::X509Certificate const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?verify@X509Certificate@Net@Poco@@SA_NAEBV1Crypto@3@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
10>PocoNetmtd.lib(SMTPClientSession.obj) : error LNK2019: unresolved external symbol "public: __cdecl Poco::DigestEngine::DigestEngine(void)" (??0DigestEngine@Poco@@QEAA@XZ) referenced in function "public: __cdecl Poco::HMACEngine<class Poco::MD5Engine>::HMACEngine<class Poco::MD5Engine>(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0?$HMACEngine@VMD5Engine@Poco@@@Poco@@QEAA@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
10>PocoFoundationmtd.lib(MD5Engine.obj) : error LNK2001: unresolved external symbol "public: __cdecl Poco::DigestEngine::DigestEngine(void)" (??0DigestEngine@Poco@@QEAA@XZ)
10>PocoFoundationmtd.lib(SHA1Engine.obj) : error LNK2001: unresolved external symbol "public: __cdecl Poco::DigestEngine::DigestEngine(void)" (??0DigestEngine@Poco@@QEAA@XZ)
10>PocoNetmtd.lib(SMTPClientSession.obj) : error LNK2019: unresolved external symbol "public: virtual __cdecl Poco::DigestEngine::~DigestEngine(void)" (??1DigestEngine@Poco@@UEAA@XZ) referenced in function "int `public: __cdecl Poco::HMACEngine<class Poco::MD5Engine>::HMACEngine<class Poco::MD5Engine>(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)'::`1'::dtor$0" (?dtor$0@?0???0?$HMACEngine@VMD5Engine@Poco@@@Poco@@QEAA@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z@4HA)
10>PocoFoundationmtd.lib(MD5Engine.obj) : error LNK2001: unresolved external symbol "public: virtual __cdecl Poco::DigestEngine::~DigestEngine(void)" (??1DigestEngine@Poco@@UEAA@XZ)
10>PocoFoundationmtd.lib(SHA1Engine.obj) : error LNK2001: unresolved external symbol "public: virtual __cdecl Poco::DigestEngine::~DigestEngine(void)" (??1DigestEngine@Poco@@UEAA@XZ)
10>PocoNetmtd.lib(SMTPClientSession.obj) : error LNK2019: unresolved external symbol "public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl Poco::DigestEngine::digestToHex(class std::vector<unsigned char,class std::allocator<unsigned char> > const &)" (?digestToHex@DigestEngine@Poco@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV?$vector@EV?$allocator@E@std@@@4@@Z) referenced in function "protected: void __cdecl Poco::Net::SMTPClientSession::loginUsingCRAM(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 &,class Poco::DigestEngine &)" (?loginUsingCRAM@SMTPClientSession@Net@Poco@@IEAAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0AEAVDigestEngine@3@@Z)
10>PocoFoundationmtd.lib(NotificationQueue.obj) : error LNK2019: unresolved external symbol "protected: void __cdecl Poco::EventImpl::waitImpl(void)" (?waitImpl@EventImpl@Poco@@IEAAXXZ) referenced in function "public: void __cdecl Poco::Event::wait(void)" (?wait@Event@Poco@@QEAAXXZ)
10>PocoFoundationmtd.lib(NotificationQueue.obj) : error LNK2019: unresolved external symbol "protected: bool __cdecl Poco::EventImpl::waitImpl(long)" (?waitImpl@EventImpl@Poco@@IEAA_NJ@Z) referenced in function "public: bool __cdecl Poco::Event::tryWait(long)" (?tryWait@Event@Poco@@QEAA_NJ@Z)
10>PocoFoundationmtd.lib(NotificationQueue.obj) : error LNK2019: unresolved external symbol "public: __cdecl Poco::Event::Event(bool)" (??0Event@Poco@@QEAA@_N@Z) referenced in function "public: __cdecl Poco::NotificationQueue::WaitInfo::WaitInfo(void)" (??0WaitInfo@NotificationQueue@Poco@@QEAA@XZ)
10>PocoFoundationmtd.lib(ArchiveStrategy.obj) : error LNK2001: unresolved external symbol "public: __cdecl Poco::Event::Event(bool)" (??0Event@Poco@@QEAA@_N@Z)
10>PocoFoundationmtd.lib(NotificationQueue.obj) : error LNK2019: unresolved external symbol "public: __cdecl Poco::Event::~Event(void)" (??1Event@Poco@@QEAA@XZ) referenced in function "public: __cdecl Poco::NotificationQueue::WaitInfo::~WaitInfo(void)" (??1WaitInfo@NotificationQueue@Poco@@QEAA@XZ)
10>PocoFoundationmtd.lib(ArchiveStrategy.obj) : error LNK2001: unresolved external symbol "public: __cdecl Poco::Event::~Event(void)" (??1Event@Poco@@QEAA@XZ)


This is strange, because I added all the projects required to my solution, and the startup project referes all these projects.

Here's my linker command line:

/OUT:"D:\MyDocuments\ProgramSourceFiles\VS2012\polarcode\apps\DigalFlash\DigalFlash\x64\DebugMT\DigalFlash.exe" /MANIFEST /NXCOMPAT /PDB:"D:\MyDocuments\ProgramSourceFiles\VS2012\polarcode\apps\DigalFlash\DigalFlash\x64\DebugMT\DigalFlash.pdb" /DYNAMICBASE "D:\MyDocuments\ProgramSourceFiles\VS2012\polarcode\apps\DigalFlash\DigalFlash\x64\DebugMT\htmlcxx.lib" "D:\MyDocuments\ProgramSourceFiles\VS2012\polarcode\apps\DigalFlash\DigalFlash\x64\DebugMT\PolarCore.lib" "D:\MyDocuments\ProgramSourceFiles\VS2012\polarcode\apps\DigalFlash\DigalFlash\x64\DebugMT\PolarMailer.lib" "D:\MyDocuments\ProgramSourceFiles\VS2012\polarcode\apps\DigalFlash\DigalFlash\x64\DebugMT\DigalFlashLib.lib" "D:\MyDocuments\ProgramSourceFiles\VS2012\polarcode\libs\poco\lib64\PocoCryptomtd.lib" "D:\MyDocuments\ProgramSourceFiles\VS2012\polarcode\libs\poco\lib64\PocoFoundationmtd.lib" "D:\MyDocuments\ProgramSourceFiles\VS2012\polarcode\libs\poco\lib64\PocoNetSSLmtd.lib" "D:\MyDocuments\ProgramSourceFiles\VS2012\polarcode\libs\poco\lib64\PocoNetmtd.lib" "D:\MyDocuments\ProgramSourceFiles\VS2012\polarcode\libs\poco\lib64\PocoUtilmtd.lib" "D:\MyDocuments\ProgramSourceFiles\VS2012\polarcode\libs\poco\lib64\PocoXMLmtd.lib" /DEBUG /MACHINE:X64 /INCREMENTAL /PGD:"D:\MyDocuments\ProgramSourceFiles\VS2012\polarcode\apps\DigalFlash\DigalFlash\x64\DebugMT\DigalFlash.pgd" /SUBSYSTEM:WINDOWS /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /ManifestFile:"x64\DebugMT\DigalFlash.exe.intermediate.manifest" /ERRORREPORT:PROMPT /NOLOGO /TLBID:1



Any idea?

Thanks in advance.
litnsio2
 
Posts: 2
Joined: 11 May 2013, 04:30

Re: Link error (static-mt, amd64, vs2012)

Postby alex » 15 May 2013, 16:28

Try in this order:

Code: Select all
"D:\MyDocuments\ProgramSourceFiles\VS2012\polarcode\libs\poco\lib64\PocoNetSSLmtd.lib"
"D:\MyDocuments\ProgramSourceFiles\VS2012\polarcode\libs\poco\lib64\PocoCryptomtd.lib"
"D:\MyDocuments\ProgramSourceFiles\VS2012\polarcode\libs\poco\lib64\PocoNetmtd.lib"
"D:\MyDocuments\ProgramSourceFiles\VS2012\polarcode\libs\poco\lib64\PocoUtilmtd.lib"
"D:\MyDocuments\ProgramSourceFiles\VS2012\polarcode\libs\poco\lib64\PocoXMLmtd.lib"
"D:\MyDocuments\ProgramSourceFiles\VS2012\polarcode\libs\poco\lib64\PocoFoundationmtd.lib"
alex
 
Posts: 1145
Joined: 11 Jul 2006, 16:27
Location: United_States


Return to Support

Who is online

Users browsing this forum: No registered users and 2 guests

cron