Compiling a VC++ 6.0 with VC++ 8.0

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<span style="font-size:9.5pt;color:black Hello,
<span style="font-size:9.5pt;color:black I have a project that was created/build using VC++ 6.0, the project uses a third party library iconnect.lib that was created with VC++ 6.0.  I am trying to compile the project using VC++ 8.0 but I get a lot of linker errors - some of those errors are below.  Note: the project compiles without errors or warnings when using VC++ 6.0.
<span style="font-size:9.5pt;color:black Can someone tell me what I need to do to get my project to compile/link successfully with VC++ 8.0?
<span style="font-size:9.5pt;color:black Thanks in advance!
<span style="font-size:9.5pt;color:black  
<span style="font-size:9.5pt;color:black -Agustin
ERRORS:
Error 82 error LNK2001: unresolved external symbol __RTC_CheckEsp iconnect.lib 
Error 83 error LNK2019: unresolved external symbol __RTC_CheckEsp referenced in function "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl toAmountString(double)" (<a title="mailto:?toAmountString@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@N@Z mailto:?toAmountString@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@N@Z ?toAmountString@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@N@Z ) iconnect.lib 
Error 164 error LNK2001: unresolved external symbol __RTC_CheckEsp SampleMsgHandler.obj 
Error 165 error LNK2001: unresolved external symbol __RTC_Shutdown iconnect.lib 
Error 168 error LNK2019: unresolved external symbol __RTC_Shutdown referenced in function "private: void __thiscall iConnect::iCTradeExtensionEuroRepo::_unpack_str2DealRefEuro(class iConnect::iCMessageBuffer &)" (<a title="mailto:?_unpack_str2DealRefEuro@iCTradeExtensionEuroRepo@iConnect@@AAEXAAViCMessageBuffer@2@@Z mailto:?_unpack_str2DealRefEuro@iCTradeExtensionEuroRepo@iConnect@@AAEXAAViCMessageBuffer@2@@Z ?_unpack_str2DealRefEuro@iCTradeExtensionEuroRepo@iConnect@@AAEXAAViCMessageBuffer@2@@Z ) iconnect.lib 
Error 169 error LNK2001: unresolved external symbol __RTC_Shutdown iconnect.lib 
Error 329 error LNK2001: unresolved external symbol __RTC_InitBase iconnect.lib 
Error 411 error LNK2019: unresolved external symbol __RTC_InitBase referenced in function "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl toAmountString(double)" (<a title="mailto:?toAmountString@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@N@Z mailto:?toAmountString@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@N@Z ?toAmountString@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@N@Z ) iconnect.lib 
Error 412 error LNK2001: unresolved external symbol __RTC_InitBase iconnect.lib 
Error 493 error LNK2001: unresolved external symbol ___security_cookie Simple.obj 
Error 494 error LNK2019: unresolved external symbol ___security_cookie referenced in function "protected: virtual void __thiscall CSample::onConnect(class iConnect::iCSession &)" (<a title="mailto:?onConnect@CSample@@MAEXAAViCSession@iConnect@@@Z mailto:?onConnect@CSample@@MAEXAAViCSession@iConnect@@@Z ?onConnect@CSample@@MAEXAAViCSession@iConnect@@@Z ) Sample.obj 
Error 495 error LNK2001: unresolved external symbol ___security_cookie SampleCommands.obj 
Error 498 error LNK2001: unresolved external symbol ___CxxFrameHandler3 Simple.obj 
Error 499 error LNK2019: unresolved external symbol ___CxxFrameHandler3 referenced in function <a title="mailto:__ehhandler$?onConnect@CSample@@MAEXAAViCSession@iConnect@@@Z mailto:__ehhandler$?onConnect@CSample@@MAEXAAViCSession@iConnect@@@Z __ehhandler$?onConnect@CSample@@MAEXAAViCSession@iConnect@@@Z  Sample.obj 
Error 500 error LNK2001: unresolved external symbol ___CxxFrameHandler3 SampleCommands.obj 
Error 503 error LNK2001: unresolved external symbol @__security_check_cookie@4 Simple.obj 
Error 504 error LNK2019: unresolved external symbol @__security_check_cookie@4 referenced in function <a title="mailto:__ehhandler$?onConnect@CSample@@MAEXAAViCSession@iConnect@@@Z mailto:__ehhandler$?onConnect@CSample@@MAEXAAViCSession@iConnect@@@Z __ehhandler$?onConnect@CSample@@MAEXAAViCSession@iConnect@@@Z  Sample.obj 
Error 505 error LNK2001: unresolved external symbol @__security_check_cookie@4 SampleCommands.obj 
Error 508 error LNK2019: unresolved external symbol @_RTC_CheckStackVars@8 referenced in function "public: virtual void __thiscall iConnect::iCBankDetail::dump(class std::basic_ostringstream<char,struct std::char_traits<char>,class std::allocator<char> > &)const " (<a title="mailto:?dump@iCBankDetail@iConnect@@UBEXAAV?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z mailto:?dump@iCBankDetail@iConnect@@UBEXAAV?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z ?dump@iCBankDetail@iConnect@@UBEXAAV?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z ) iconnect.lib 
Error 509 error LNK2001: unresolved external symbol @_RTC_CheckStackVars@8 iconnect.lib 
Error 650 error LNK2001: unresolved external symbol @_RTC_CheckStackVars@8 Sample.obj 
Error 651 error LNK2001: unresolved external symbol @_RTC_CheckStackVars@8 SampleCommands.obj 
Error 652 error LNK2001: unresolved external symbol @_RTC_CheckStackVars@8 SampleLog.obj 
Error 653 error LNK2001: unresolved external symbol @_RTC_CheckStackVars@8 SampleMsgHandler.obj 
Error 654 error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::basic_ostream<char,struct std::char_traits<char> >::_Osfx(void)" (<a title="mailto:__imp_?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ mailto:__imp_?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ __imp_?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ ) referenced in function "public: __thiscall std::basic_ostream<char,struct std::char_traits<char> >::sentry::~sentry(void)" (<a title="mailto:??1sentry@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE@XZ mailto:??1sentry@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE@XZ ??1sentry@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE@XZ ) Sample.obj 
Error 655 error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::basic_ostream<char,struct std::char_traits<char> >::_Osfx(void)" (<a title="mailto:__imp_?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ mailto:__imp_?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ __imp_?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ ) SampleCommands.obj 
Error 656 error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::basic_ostream<char,struct std::char_traits<char> >::_Osfx(void)" (<a title="mailto:__imp_?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ mailto:__imp_?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ __imp_?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ ) SampleLog.obj 
Error 657 error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::basic_ostream<char,struct std::char_traits<char> >::_Osfx(void)" (<a title="mailto:__imp_?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ mailto:__imp_?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ __imp_?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ ) SampleMsgHandler.obj 
Error 658 error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::_Lock(void)" (<a title="mailto:__imp_?_Lock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ mailto:__imp_?_Lock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ __imp_?_Lock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ ) referenced in function "public: __thiscall std::basic_ostream<char,struct std::char_traits<char> >::_Sentry_base::_Sentry_base(class std::basic_ostream<char,struct std::char_traits<char> > &)" (<a title="mailto:??0_Sentry_base@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE@AAV12@@Z mailto:??0_Sentry_base@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE@AAV12@@Z ??0_Sentry_base@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAE@AAV12@@Z ) Sample.obj 
Error 659 error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::_Lock(void)" (<a title="mailto:__imp_?_Lock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ mailto:__imp_?_Lock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ __imp_?_Lock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ ) SampleCommands.obj 
Error 667 error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(char const *)" (<a title="mailto:__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z mailto:__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z __imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z ) iconnect.lib 
Error 668 error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(char const *)" (<a title="mailto:__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z mailto:__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z __imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z ) iconnect.lib 
Error 902 error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(char const *,unsigned int)" (<a title="mailto:__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBDI@Z mailto:__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBDI@Z __imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBDI@Z ) referenced in function "public: class iConnect::iCMessageBuffer & __thiscall iConnect::iCMessageBuffer::operator>>(class iConnect::flstring &)" (<a title="mailto:??5iCMessageBuffer@iConnect@@QAEAAV01@AAVflstring@1@@Z mailto:??5iCMessageBuffer@iConnect@@QAEAAV01@AAVflstring@1@@Z ??5iCMessageBuffer@iConnect@@QAEAAV01@AAVflstring@1@@Z ) iconnect.lib 
Error 903 error LNK2019: unresolved external symbol <a title="mailto:__imp__WSAStartup@8 mailto:__imp__WSAStartup@8 __imp__WSAStartup@8 referenced in function "public: int __thiscall iConnect::WSALib::init(void)" (<a title="mailto:?init@WSALib@iConnect@@QAEHXZ mailto:?init@WSALib@iConnect@@QAEHXZ ?init@WSALib@iConnect@@QAEHXZ ) iconnect.lib 
Error 904 error LNK2019: unresolved external symbol <a title="mailto:__imp__WSACleanup@0 mailto:__imp__WSACleanup@0 __imp__WSACleanup@0 referenced in function "public: int __thiscall iConnect::WSALib::fini(void)" (<a title="mailto:?fini@WSALib@iConnect@@QAEHXZ mailto:?fini@WSALib@iConnect@@QAEHXZ ?fini@WSALib@iConnect@@QAEHXZ ) iconnect.lib 


View the full article
 
Back
Top