Linking error while migrating VC++ DLL from visual studio 6.0 to 10.0

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi,
I am getting below error while migrating my DLL fro visual studio 6.0 to visual studio 2010. Could you please tell me the solution to resolve the same.
Error 22 error LNK2019: unresolved external symbol "unsigned int (__stdcall* ATL::g_pfnGetThreadACP)(void)" ( mailto:?g_pfnGetThreadACP@ATL@@3P6GIXZA ?g_pfnGetThreadACP@ATL@@3P6GIXZA ) referenced in function "unsigned int __stdcall
ATL::_AtlGetConversionACP(void)" ( mailto:?_AtlGetConversionACP@ATL@@YGIXZ ?_AtlGetConversionACP@ATL@@YGIXZ ) C:sourceeig16.0HPFsrcIEWIN32IMNETLIBzfaxapiZFAPIS32.LIB(zfapi.obj) zfaxapi<br/>
Error 23 error LNK2019: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" ( mailto:?_Xran@_String_base@std@@SAXXZ ?_Xran@_String_base@std@@SAXXZ ) referenced in function "public: class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > & __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::erase(unsigned int,unsigned int)" ( mailto:?erase@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@II@Z ?erase@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@II@Z ) C:sourceeig16.0HPFsrcIEWIN32IMNETLIBzfaxapiZFAPIS32.LIB(zfapi.obj) zfaxapi<br/>
Error 24 error LNK2019: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" ( mailto:?_Xlen@_String_base@std@@SAXXZ ?_Xlen@_String_base@std@@SAXXZ ) referenced in function "protected: bool __thiscall
std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::_Grow(unsigned int,bool)" ( mailto:?_Grow@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAE_NI_N@Z ?_Grow@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAE_NI_N@Z ) C:sourceeig16.0HPFsrcIEWIN32IMNETLIBzfaxapiZFAPIS32.LIB(zfapi.obj) zfaxapi<br/>
Error 25 error LNK2019: unresolved external symbol "public: static long __cdecl ZFServerADInfo::GetZFServerParams(class _bstr_t,class _bstr_t &,class _bstr_t &,class _bstr_t &,class _bstr_t &,class _bstr_t &)" ( mailto:?GetZFServerParams@ZFServerADInfo@@SAJV_bstr_t@@AAV2@1111@Z ?GetZFServerParams@ZFServerADInfo@@SAJV_bstr_t@@AAV2@1111@Z )
referenced in function mailto:_ZfxSetServerFromAD@8 _ZfxSetServerFromAD@8 C:sourceeig16.0HPFsrcIEWIN32IMNETLIBzfaxapiZFAPIS32.LIB(zfapi.obj) zfaxapi<br/>
Error 26 error LNK2019: unresolved external symbol "public: static bool __cdecl ZFADInfo::IsADEnabled(void)" ( mailto:?IsADEnabled@ZFADInfo@@SA_NXZ ?IsADEnabled@ZFADInfo@@SA_NXZ ) referenced in function
mailto:_ZfxSetServerFromAD@8 _ZfxSetServerFromAD@8 C:sourceeig16.0HPFsrcIEWIN32IMNETLIBzfaxapiZFAPIS32.LIB(zfapi.obj) zfaxapi

Also below are my compiler and linker settings.
Project settings=>C/C++:

/I"....include" /I"....INCLUDE3rdParty" /ZI /nologo /W3 /WX- /Od /Oy- /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_USRDLL" /D "ZFAXAPI_EXPORTS" /D "_VC80_UPGRADE=0x0600" /D "_WINDLL" /D "_MBCS" /D "_ATL_STATIC_REGISTRY" /Gm /EHsc /RTC1 /MTd /GS /Gy- /fp:precise
/Zc:wchar_t /Zc:forScope /Fp".Debugzfaxapi.pch" /Fa".Debug" /Fo".Debug" /Fd".Debug" /FR".Debug" /Gd /analyze- /errorReport:queue


Project settings=>Linker :
/OUT:"Debug/zfaxapid.dll" /INCREMENTAL /NOLOGO /LIBPATH:"....LIB3rdPartyZetaFax" /DLL "odbc32.lib" "odbccp32.lib" "C:Program FilesMicrosoft Visual Studio 10.0VCatlmfclibatls.lib" "ZFAPIS32.LIB" "kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib"
"comdlg32.lib" "advapi32.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" /NODEFAULTLIB:"LIBCMTD.lib" /DEF:".ZFAXAPI.DEF" /MANIFEST /ManifestFile:".Debugzfaxapi.dll.intermediate.manifest" /ALLOWISOLATION /MANIFESTUAC:"level=asInvoker uiAccess=false"
/DEBUG /PDB:"C:sourceeig16.0HPFsrcIEWIN32IMNETLIBzfaxapiDebugzfaxapi.pdb" /SUBSYSTEM:CONSOLE /PGD:"C:sourceeig16.0HPFsrcIEWIN32IMNETLIBzfaxapiDebugzfaxapi.pgd" /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:".Debugzfaxapid.lib" /MACHINE:X86
/ERRORREPORT:QUEUE

View the full article
 
Back
Top