EDN Admin
Well-known member
Hello,
I trying to build my project in VS8 (it was building fine in VS2003).
I get these linking error :
<font size="1 engine.lib(ECMFileHandler.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@std@@QBEXXZ) engine.lib(ECMFileHandler.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base@std@@QBEXXZ)
engine.lib(ECMFileHandler.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::ios_base::_Addstd(void)" (?_Addstd@ios_base@std@@QAEXXZ)
I checked to make sure all my projects are compiled in MT debug.
Here are the command line of the linker for my projects:
Dodgeball:
/OUT:"D:SVN_DevbuilddodgeballDebugDodgeBall.exe" /NOLOGO /LIBPATH:"D:SVN_DevlibsNewtonSDKsdkdll" /MANIFEST /MANIFESTFILE:"DebugDodgeBall.exe.intermediate.manifest" /DEBUG /PDB:"d:SVN_DevbuilddodgeballDebugDodgeBall.pdb" /ERRORREPORTROMPT d3dx9d.lib d3d9.lib comctl32.lib d3dxof.lib dinput.lib libcmtd.lib libcpmtd.lib dinput8.lib dsound.lib dsetup.lib dplayx.lib dxguid.lib dxtrans.lib dxErr9.lib winmm.lib newton.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib "....buildengindebugengine.lib" "....builddx9utilsdebugdx9utils.lib" "....buildmathdebugmath.lib" "....buildutilsdebugutils.lib"
dx9utils:
/OUT:"D:SVN_Devbuilddx9utilsDebugDX9Utils.dll" /NOLOGO /DLL /MANIFEST /MANIFESTFILE:"D:SVN_Devbuilddx9utilsDebugDX9Utils.dll.intermediate.manifest" /DEBUG /PDB:"d:SVN_Devbuilddx9utilsDebugDX9Utils.pdb" /ERRORREPORTROMPT d3dx9d.lib d3d9.lib d3dxof.lib dinput.lib dinput8.lib dsound.lib dsetup.lib dplayx.lib dxguid.lib dxtrans.lib dxErr9.lib winmm.lib libcpmtd.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
engine:
/OUT:"D:SVN_DevbuildEnginDebugEngine.dll" /NOLOGO /LIBPATH:"D:SVN_DevlibsNewtonSDKsdkdll" /DLL /MANIFEST /MANIFESTFILE:"D:SVN_DevbuildEnginDebugEngine.dll.intermediate.manifest" /DEBUG /PDB:"d:SVN_DevbuildEnginDebugEngine.pdb" /ERRORREPORTROMPT d3dx9d.lib d3d9.lib d3dxof.lib dinput.lib dinput8.lib dsound.lib dsetup.lib dplayx.lib dxguid.lib dxtrans.lib dxErr9.lib winmm.lib newton.lib libcpmtd.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib "....builddx9utilsdebugdx9utils.lib" "....buildmathdebugmath.lib" "....buildutilsdebugutils.lib"
math:
/OUT:"D:SVN_DevbuildMathDebugMath.dll" /NOLOGO /DLL /MANIFEST /MANIFESTFILE:"D:SVN_DevbuildMathDebugMath.dll.intermediate.manifest" /DEBUG /PDB:"d:SVN_DevbuildmathDebugMath.pdb" /ERRORREPORTROMPT libcpmtd.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
utils:
/OUT:"D:SVN_DevbuildutilsDebugUtils.dll" /NOLOGO /DLL /MANIFEST /MANIFESTFILE:"D:SVN_DevbuildutilsDebugUtils.dll.intermediate.manifest" /DEBUG /PDB:"d:SVN_DevbuildutilsDebugUtils.pdb" /ERRORREPORTROMPT libcpmtd.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ....builddx9utilsDebugDX9Utils.lib
I have been adding different libs to the configuration and searching on google with no success...
I hope someone can tell me what is going on !
Thanks
</font>
View the full article
I trying to build my project in VS8 (it was building fine in VS2003).
I get these linking error :
<font size="1 engine.lib(ECMFileHandler.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@std@@QBEXXZ) engine.lib(ECMFileHandler.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xlen(void)const " (?_Xlen@_String_base@std@@QBEXXZ)
engine.lib(ECMFileHandler.obj) : error LNK2001: unresolved external symbol "public: void __thiscall std::ios_base::_Addstd(void)" (?_Addstd@ios_base@std@@QAEXXZ)
I checked to make sure all my projects are compiled in MT debug.
Here are the command line of the linker for my projects:
Dodgeball:
/OUT:"D:SVN_DevbuilddodgeballDebugDodgeBall.exe" /NOLOGO /LIBPATH:"D:SVN_DevlibsNewtonSDKsdkdll" /MANIFEST /MANIFESTFILE:"DebugDodgeBall.exe.intermediate.manifest" /DEBUG /PDB:"d:SVN_DevbuilddodgeballDebugDodgeBall.pdb" /ERRORREPORTROMPT d3dx9d.lib d3d9.lib comctl32.lib d3dxof.lib dinput.lib libcmtd.lib libcpmtd.lib dinput8.lib dsound.lib dsetup.lib dplayx.lib dxguid.lib dxtrans.lib dxErr9.lib winmm.lib newton.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib "....buildengindebugengine.lib" "....builddx9utilsdebugdx9utils.lib" "....buildmathdebugmath.lib" "....buildutilsdebugutils.lib"
dx9utils:
/OUT:"D:SVN_Devbuilddx9utilsDebugDX9Utils.dll" /NOLOGO /DLL /MANIFEST /MANIFESTFILE:"D:SVN_Devbuilddx9utilsDebugDX9Utils.dll.intermediate.manifest" /DEBUG /PDB:"d:SVN_Devbuilddx9utilsDebugDX9Utils.pdb" /ERRORREPORTROMPT d3dx9d.lib d3d9.lib d3dxof.lib dinput.lib dinput8.lib dsound.lib dsetup.lib dplayx.lib dxguid.lib dxtrans.lib dxErr9.lib winmm.lib libcpmtd.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
engine:
/OUT:"D:SVN_DevbuildEnginDebugEngine.dll" /NOLOGO /LIBPATH:"D:SVN_DevlibsNewtonSDKsdkdll" /DLL /MANIFEST /MANIFESTFILE:"D:SVN_DevbuildEnginDebugEngine.dll.intermediate.manifest" /DEBUG /PDB:"d:SVN_DevbuildEnginDebugEngine.pdb" /ERRORREPORTROMPT d3dx9d.lib d3d9.lib d3dxof.lib dinput.lib dinput8.lib dsound.lib dsetup.lib dplayx.lib dxguid.lib dxtrans.lib dxErr9.lib winmm.lib newton.lib libcpmtd.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib "....builddx9utilsdebugdx9utils.lib" "....buildmathdebugmath.lib" "....buildutilsdebugutils.lib"
math:
/OUT:"D:SVN_DevbuildMathDebugMath.dll" /NOLOGO /DLL /MANIFEST /MANIFESTFILE:"D:SVN_DevbuildMathDebugMath.dll.intermediate.manifest" /DEBUG /PDB:"d:SVN_DevbuildmathDebugMath.pdb" /ERRORREPORTROMPT libcpmtd.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
utils:
/OUT:"D:SVN_DevbuildutilsDebugUtils.dll" /NOLOGO /DLL /MANIFEST /MANIFESTFILE:"D:SVN_DevbuildutilsDebugUtils.dll.intermediate.manifest" /DEBUG /PDB:"d:SVN_DevbuildutilsDebugUtils.pdb" /ERRORREPORTROMPT libcpmtd.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ....builddx9utilsDebugDX9Utils.lib
I have been adding different libs to the configuration and searching on google with no success...
I hope someone can tell me what is going on !
Thanks
</font>
View the full article