error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
-
Friday, July 27, 2012 5:46 PM
I am trying to convert my VS2003 project to VS2010. But when I compile it, I'm getting these errors:
comsuppwd.lib(comraise.obj) : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
atlsd.lib(AtlDebugAPI.obj) : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3@YAXPAX@Z)
comsuppwd.lib(invkprxy.obj) : error LNK2019: unresolved external symbol ___security_cookie referenced in function "long __cdecl _com_invoke_helper(struct IDispatch *,long,unsigned short,unsigned short,void *,wchar_t const *,char *,struct IErrorInfo * *)" (?_com_invoke_helper@@YAJPAUIDispatch@@JGGPAXPB_WPADPAPAUIErrorInfo@@@Z)
Testes.obj : error LNK2001: unresolved external symbol ___security_cookie
DBManager.obj : error LNK2001: unresolved external symbol ___security_cookie
FactoryTransacao.obj : error LNK2001: unresolved external symbol ___CxxFrameHandler3
stdafx.obj : error LNK2001: unresolved external symbol ___CxxFrameHandler3
UtilTeste.obj : error LNK2001: unresolved external symbol ___CxxFrameHandler3
FactoryTransacao.obj : error LNK2001: unresolved external symbol @__security_check_cookie@4
stdafx.obj : error LNK2001: unresolved external symbol @__security_check_cookie@4
UtilTeste.obj : error LNK2001: unresolved external symbol @__security_check_cookie@4
Testes.obj : error LNK2001: unresolved external symbol __RTC_CheckEsp
DBManager.obj : error LNK2001: unresolved external symbol __RTC_CheckEsp
FactoryModulo.obj : error LNK2001: unresolved external symbol __RTC_CheckEsp
comsuppwd.lib(invkprxy.obj) : error LNK2019: unresolved external symbol __RTC_Shutdown referenced in function "long __cdecl _com_invoke_helper(struct IDispatch *,long,unsigned short,unsigned short,void *,wchar_t const *,char *,struct IErrorInfo * *)" (?_com_invoke_helper@@YAJPAUIDispatch@@JGGPAXPB_WPADPAPAUIErrorInfo@@@Z)
FactoryTransacao.obj : error LNK2001: unresolved external symbol __RTC_Shutdown
stdafx.obj : error LNK2001: unresolved external symbol __RTC_Shutdown
UtilTeste.obj : error LNK2001: unresolved external symbol __RTC_Shutdown
xml.obj : error LNK2001: unresolved external symbol __RTC_Shutdown
Fabrica.obj : error LNK2001: unresolved external symbol __RTC_InitBase
xml.obj : error LNK2001: unresolved external symbol @_RTC_CheckStackVars@8
ControladorTeste.obj : error LNK2001: unresolved external symbol @_RTC_CheckStackVars@8
Transacao.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@)
TrxAdministracao_Diagrama_getXML.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@)
TrxAdministracao_Pesquisa_Medicao.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@)
Fabrica.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@)
Testes.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@)
DBManager.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@)
FactoryModulo.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@)
libcpmtd.lib(locale0.obj) : error LNK2019: unresolved external symbol __CxxThrowException@8 referenced in function "private: static void __cdecl std::locale::_Setgloballocale(void *)" (?_Setgloballocale@locale@std@@CAXPAX@Z)
libcpmtd.lib(iosptrs.obj) : error LNK2001: unresolved external symbol __CxxThrowException@8
atlsd.lib(Externs.obj) : error LNK2001: unresolved external symbol __CxxThrowException@8
comsuppwd.lib(comraise.obj) : error LNK2001: unresolved external symbol __CxxThrowException@8
ControladorTeste.obj : error LNK2019: unresolved external symbol _system referenced in function "private: void __thiscall CControladorTeste::ApresentaResultado(void)" (?ApresentaResultado@CControladorTeste@@AAEXXZ)
TrxManutencao_EditarRegistroManutencao.obj : error LNK2001: unresolved external symbol __chkstk
PFW.lib(Erro.obj) : error LNK2001: unresolved external symbol __chkstk
FactoryTransacao.obj : error LNK2001: unresolved external symbol _strlen
stdafx.obj : error LNK2001: unresolved external symbol _strlen
UtilTeste.obj : error LNK2001: unresolved external symbol _strlen
FactoryModulo.obj : error LNK2001: unresolved external symbol __invalid_parameter
FactoryTransacao.obj : error LNK2001: unresolved external symbol __invalid_parameter
Fabrica.obj : error LNK2001: unresolved external symbol __invalid_parameter
FactoryTransacao.obj : error LNK2001: unresolved external symbol __CrtDbgReportW
Fabrica.obj : error LNK2001: unresolved external symbol __CrtDbgReportW
TrxManutencao_EditarOrdemServico.obj : error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z)
Transacao.obj : error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z)
TrxAdministracao_Diagrama_getXML.obj : error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z)
TrxAdministracao_Pesquisa_Medicao.obj : error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z)
ControladorTeste.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete[](void *)" (??_V@YAXPAX@Z)
Testes.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete[](void *)" (??_V@YAXPAX@Z)
DBManager.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete[](void *)" (??_V@YAXPAX@Z)
FactoryModulo.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete[](void *)" (??_V@YAXPAX@Z)
ControladorTeste.obj : error LNK2001: unresolved external symbol _sprintf_s
Testes.obj : error LNK2001: unresolved external symbol _sprintf_s
UtilTeste.obj : error LNK2001: unresolved external symbol _sprintf_s
xml.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall std::exception::~exception(void)" (??1exception@std@@UAE@XZ)
ControladorTeste.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall std::exception::~exception(void)" (??1exception@std@@UAE@XZ)
Testes.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall std::exception::~exception(void)" (??1exception@std@@UAE@XZ)
DBManager.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall std::exception::~exception(void)" (??1exception@std@@UAE@XZ)
ControladorTeste.obj : error LNK2001: unresolved external symbol _memcpy_s
Testes.obj : error LNK2001: unresolved external symbol _memcpy_s
DBManager.obj : error LNK2001: unresolved external symbol _memcpy_s
TrxProducao_Finalizar.obj : error LNK2001: unresolved external symbol _atexit
TrxProducao_FinalizarEventoProgramado.obj : error LNK2001: unresolved external symbol _atexit
TrxPIMS_InicioParada.obj : error LNK2001: unresolved external symbol _atexit
TrxPIMS_Producao.obj : error LNK2001: unresolved external symbol _atexit
TrxPIMS_RegistrarValorParaLote.obj : error LNK2001: unresolved external symbol _atexit
TrxProducao_CancelarOrdemProducao.obj : error LNK2001: unresolved external symbol _atexit
PFW.lib(PFW_Log.obj) : error LNK2019: unresolved external symbol __wassert referenced in function "public: void __thiscall MSXML::IXMLDOMNode::Puttext(class _bstr_t)" (?Puttext@IXMLDOMNode@MSXML@@QAEXV_bstr_t@@@Z)
DBManager.obj : error LNK2001: unresolved external symbol __wassert
Transacao.obj : error LNK2001: unresolved external symbol __wassert
TrxManutencao_OrdernarRecomendacaoSegurancaOS.obj : error LNK2001: unresolved external symbol __wassert
FactoryTransacao.obj : error LNK2001: unresolved external symbol _memcmp
UtilTeste.obj : error LNK2001: unresolved external symbol _memcmp
Fabrica.obj : error LNK2001: unresolved external symbol _memcmp
PFW.lib(Resource.obj) : error LNK2001: unresolved external symbol "void __stdcall `eh vector destructor iterator'(void *,unsigned int,int,void (__thiscall*)(void *))" (??_M@YGXPAXIHP6EX0@Z@Z)
PFW.lib(LockControl.obj) : error LNK2001: unresolved external symbol "void __stdcall `eh vector destructor iterator'(void *,unsigned int,int,void (__thiscall*)(void *))" (??_M@YGXPAXIHP6EX0@Z@Z)
PFW.lib(Numeric.obj) : error LNK2001: unresolved external symbol "void __stdcall `eh vector destructor iterator'(void *,unsigned int,int,void (__thiscall*)(void *))" (??_M@YGXPAXIHP6EX0@Z@Z)
libcpmtd.lib(xstold.obj) : error LNK2001: unresolved external symbol __fltused
comsuppwd.lib(invkprxy.obj) : error LNK2001: unresolved external symbol __fltused
PFW.lib(CacheTrx.obj) : error LNK2001: unresolved external symbol __fltused
PFW.lib(Numeric.obj) : error LNK2001: unresolved external symbol __fltused
PFW.lib(UTIL.obj) : error LNK2001: unresolved external symbol __ftol2_sse
PFW.lib(Domain.obj) : error LNK2001: unresolved external symbol __purecall
TrxAdministracao_Diagrama_getXML.obj : error LNK2001: unresolved external symbol __purecall
TrxAdministracao_Pesquisa_Medicao.obj : error LNK2001: unresolved external symbol __purecall
TrxBuscarEstruturaRFC.obj : error LNK2001: unresolved external symbol __purecall
PFW.lib(UTIL.obj) : error LNK2001: unresolved external symbol _memchr
PFW.lib(Init.obj) : error LNK2001: unresolved external symbol _memchr
PFW.lib(Erro.obj) : error LNK2001: unresolved external symbol _memchr
LINK : error LNK2001: unresolved external symbol _mainCRTStartup
libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol ___pctype_func
libcpmtd.lib(_tolower.obj) : error LNK2019: unresolved external symbol _isupper referenced in function __Tolower
libcpmtd.lib(_tolower.obj) : error LNK2019: unresolved external symbol ____lc_codepage_func referenced in function __Tolower
libcpmtd.lib(_toupper.obj) : error LNK2001: unresolved external symbol ____lc_codepage_func
libcpmtd.lib(xwctomb.obj) : error LNK2001: unresolved external symbol ____lc_codepage_func
libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol ____lc_codepage_func
libcpmtd.lib(_tolower.obj) : error LNK2019: unresolved external symbol ____lc_handle_func referenced in function __Tolower
libcpmtd.lib(_toupper.obj) : error LNK2001: unresolved external symbol ____lc_handle_func
libcpmtd.lib(xwctomb.obj) : error LNK2001: unresolved external symbol ____lc_handle_func
libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol ____lc_handle_func
libcpmtd.lib(_tolower.obj) : error LNK2019: unresolved external symbol __calloc_dbg referenced in function __Getctype
libcpmtd.lib(_toupper.obj) : error LNK2019: unresolved external symbol _islower referenced in function __Toupper
libcpmtd.lib(uncaught.obj) : error LNK2019: unresolved external symbol "bool __cdecl __uncaught_exception(void)" (?__uncaught_exception@@YA_NXZ) referenced in function "bool __cdecl std::uncaught_exception(void)" (?uncaught_exception@std@@YA_NXZ)
atlsd.lib(AtlDebugAPI.obj) : error LNK2001: unresolved external symbol __errno
libcpmtd.lib(xstod.obj) : error LNK2001: unresolved external symbol __errno
libcpmtd.lib(xwctomb.obj) : error LNK2019: unresolved external symbol __errno referenced in function ___Wcrtomb_lk
libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol __errno
atlsd.lib(Externs.obj) : error LNK2001: unresolved external symbol __errno
libcpmtd.lib(xstoul.obj) : error LNK2001: unresolved external symbol __errno
libcpmtd.lib(xstol.obj) : error LNK2001: unresolved external symbol __errno
libcpmtd.lib(xstoll.obj) : error LNK2001: unresolved external symbol __errno
libcpmtd.lib(xstoull.obj) : error LNK2001: unresolved external symbol __errno
libcpmtd.lib(xstoul.obj) : error LNK2019: unresolved external symbol _tolower referenced in function __Stoulx
libcpmtd.lib(xstoull.obj) : error LNK2001: unresolved external symbol _tolower
libcpmtd.lib(xstoull.obj) : error LNK2019: unresolved external symbol __aulldiv referenced in function __Stoullx
libcpmtd.lib(xstod.obj) : error LNK2019: unresolved external symbol _strtod referenced in function __Stodx
libcpmtd.lib(xwctomb.obj) : error LNK2019: unresolved external symbol ____mb_cur_max_l_func referenced in function __Wcrtomb
atlsd.lib(AtlDebugAPI.obj) : error LNK2019: unresolved external symbol __snwprintf_s referenced in function _AtlTraceVU
atlsd.lib(AtlDebugAPI.obj) : error LNK2019: unresolved external symbol _wcscpy_s referenced in function _AtlTraceGetProcessInfo@8
atlsd.lib(AtlDebugAPI.obj) : error LNK2019: unresolved external symbol _wcsncpy_s referenced in function _AtlTraceGetProcessInfo@8
atlsd.lib(AtlTraceModuleManager.obj) : error LNK2001: unresolved external symbol _wcsncpy_s
atlsd.lib(AtlDebugAPI.obj) : error LNK2019: unresolved external symbol _strcpy_s referenced in function "void __cdecl ATL::Checked::strcpy_s(char *,unsigned int,char const *)" (?strcpy_s@Checked@ATL@@YAXPADIPBD@Z)
atlsd.lib(AtlDebugAPI.obj) : error LNK2019: unresolved external symbol _calloc referenced in function "void __cdecl ATL::AtlConvAllocMemory<wchar_t>(wchar_t * *,int,wchar_t *,int)" (??$AtlConvAllocMemory@_W@ATL@@YAXPAPA_WHPA_WH@Z)
atlsd.lib(AtlDebugAPI.obj) : error LNK2019: unresolved external symbol __recalloc referenced in function "void __cdecl ATL::AtlConvAllocMemory<wchar_t>(wchar_t * *,int,wchar_t *,int)" (??$AtlConvAllocMemory@_W@ATL@@YAXPAPA_WHPA_WH@Z)
atlsd.lib(Allocate.obj) : error LNK2001: unresolved external symbol __recalloc
atlsd.lib(Allocate.obj) : error LNK2019: unresolved external symbol __except_handler4 referenced in function "public: bool __thiscall CAtlAllocator::Init(char const *,unsigned long)" (?Init@CAtlAllocator@@QAE_NPBDK@Z)
comsuppwd.lib(comutil.obj) : error LNK2001: unresolved external symbol __except_handler4
comsuppwd.lib(invkprxy.obj) : error LNK2001: unresolved external symbol __except_handler4
atlsd.lib(Allocate.obj) : error LNK2019: unresolved external symbol __wcsicmp referenced in function "public: bool __thiscall CAtlAllocator::FindModule(wchar_t const *,unsigned int *)const " (?FindModule@CAtlAllocator@@QBE_NPB_WPAI@Z)
atlsd.lib(AtlTraceModuleManager.obj) : error LNK2019: unresolved external symbol _wcslen referenced in function "public: void __thiscall CAtlTraceModuleInfo::Reset(struct HINSTANCE__ *)" (?Reset@CAtlTraceModuleInfo@@QAEXPAUHINSTANCE__@@@Z)
.\..\..\Output\TestesAutomaticos\Debug/Testes.exe : fatal error LNK1120: 121 unresolved externals
========== Build: 4 succeeded, 1 failed, 26 up-to-date, 0 skipped ==========
Need help to resolve this.
Thanks in advance!
All Replies
-
Sunday, July 29, 2012 10:43 AM
Did you set the include and lib path. I have got these kind of errors because of missing VS service packs.Thanks, Renjith V R
- Marked As Answer by BrunoTeixeira Monday, July 30, 2012 11:18 AM
-
Monday, July 30, 2012 11:22 AMThanks. I forgot these lib http://msdn.microsoft.com/en-us/library/abx4dbyh(v=vs.80).aspx and work.

