Hi all,
I'm having a problem with my linker if I include any of the standard C++ libraries (such as string). It spits out 3 2019 errors (unresolved externals) and a warning that libcmt is conflicting with another library even though I'm ignoring it in the linker options.
I've tried all of the usual stuff, such as allowing the linking of msvcrt (both debug and release versions) but I can't seem to get this to work.
Here's my linker options:
/VERBOSE /OUT:"Debug\GDKTest app.exe" /NOLOGO /MANIFEST /MANIFESTFILE:"Debug\GDKTest app.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /NODEFAULTLIB:"libcmtd" /NODEFAULTLIB:"msvcrt" /NODEFAULTLIB:"atls" /DEBUG /PDB:"c:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\GDKTest app\GDKTest app\Debug\GDKTest app.pdb" /SUBSYSTEM:WINDOWS /DYNAMICBASE /NXCOMPAT /ERRORREPORT
ROMPT kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
and the output:
1>Linking...
1>Searching libraries
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\kernel32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\user32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\gdi32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\winspool.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\comdlg32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\advapi32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\shell32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\ole32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\oleaut32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\uuid.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\odbc32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\odbccp32.lib:
1> Searching C:\Program Files\Microsoft Visual Studio 9.0\VC\lib\libcpmtd.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\darksdk.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\core.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\text.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\display.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\input.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\file.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\basic2D.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\bitmap.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\sound.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\music.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\sprites.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\image.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\animation.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\light.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\camera.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\basic3D.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\matrix.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\world.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\particles.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\3dmaths.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\ftp.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\memblocks.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\multiplayer.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\system.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\convx.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\conv3ds.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\convmd2.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\convmd3.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\convmdl.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\terrain.lib:
1> Searching C:\Program Files\Microsoft Visual Studio 9.0\VC\lib\OLDNAMES.lib:
1> Searching C:\Program Files\Microsoft Visual Studio 9.0\VC\lib\libcmt.lib:
1> Searching C:\Program Files\Microsoft Visual Studio 9.0\VC\lib\libcpmt.lib:
1> Searching C:\Program Files\Microsoft DirectX SDK (August 2007)\Lib\x86\d3dx9.lib:
1> Searching C:\Program Files\Microsoft DirectX SDK (August 2007)\Lib\x86\d3d9.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\winmm.lib:
1> Searching C:\Program Files\Microsoft DirectX SDK (August 2007)\Lib\x86\dinput8.lib:
1> Searching C:\Program Files\Microsoft DirectX SDK (August 2007)\Lib\x86\dsound.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\msacm32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\quartz.lib:
1> Searching C:\Program Files\Microsoft DirectX SDK (August 2007)\Lib\x86\dxguid.lib:
1> Searching C:\Program Files\Microsoft DirectX SDK (August 2007)\Lib\x86\ddraw.lib:
1> Searching C:\Program Files\Microsoft DirectX SDK (August 2007)\Lib\x86\dxerr9.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\shlwapi.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\strmbase.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\wininet.lib:
1> Searching C:\Program Files\Microsoft DirectX SDK (August 2007)\Lib\x86\dplayx.lib:
1> Searching C:\Program Files\Microsoft DirectX SDK (August 2007)\Lib\x86\d3dxof.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\kernel32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\user32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\gdi32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\winspool.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\comdlg32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\advapi32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\shell32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\ole32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\oleaut32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\uuid.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\odbc32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\odbccp32.lib:
1> Searching C:\Program Files\Microsoft Visual Studio 9.0\VC\lib\libcpmtd.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\darksdk.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\core.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\text.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\display.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\input.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\file.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\basic2D.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\bitmap.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\sound.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\music.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\sprites.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\image.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\animation.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\light.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\camera.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\basic3D.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\matrix.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\world.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\particles.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\3dmaths.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\ftp.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\memblocks.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\multiplayer.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\system.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\convx.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\conv3ds.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\convmd2.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\convmd3.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\convmdl.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\terrain.lib:
1> Searching C:\Program Files\Microsoft Visual Studio 9.0\VC\lib\OLDNAMES.lib:
1> Searching C:\Program Files\Microsoft Visual Studio 9.0\VC\lib\libcmt.lib:
1> Searching C:\Program Files\Microsoft Visual Studio 9.0\VC\lib\libcpmt.lib:
1> Searching C:\Program Files\Microsoft DirectX SDK (August 2007)\Lib\x86\d3dx9.lib:
1> Searching C:\Program Files\Microsoft DirectX SDK (August 2007)\Lib\x86\d3d9.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\winmm.lib:
1> Searching C:\Program Files\Microsoft DirectX SDK (August 2007)\Lib\x86\dinput8.lib:
1> Searching C:\Program Files\Microsoft DirectX SDK (August 2007)\Lib\x86\dsound.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\msacm32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\quartz.lib:
1> Searching C:\Program Files\Microsoft DirectX SDK (August 2007)\Lib\x86\dxguid.lib:
1> Searching C:\Program Files\Microsoft DirectX SDK (August 2007)\Lib\x86\ddraw.lib:
1> Searching C:\Program Files\Microsoft DirectX SDK (August 2007)\Lib\x86\dxerr9.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\shlwapi.lib:
1> Searching C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\strmbase.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\wininet.lib:
1> Searching C:\Program Files\Microsoft DirectX SDK (August 2007)\Lib\x86\dplayx.lib:
1> Searching C:\Program Files\Microsoft DirectX SDK (August 2007)\Lib\x86\d3dxof.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\kernel32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\user32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\gdi32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\winspool.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\comdlg32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\advapi32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\shell32.lib:
1> Searching C:\Program Files\Microsoft SDKs\Windows\v6.0A\\lib\ole32.lib:
1>Finished searching libraries
1>libcpmtd.lib(xdebug.obj) : warning LNK4098: defaultlib 'libcmt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
1>libcpmtd.lib(xdebug.obj) : error LNK2019: unresolved external symbol __malloc_dbg referenced in function "void * __cdecl operator new(unsigned int,struct std::_DebugHeapTag_t const &,char *,int)" (??2@YAPAXIABU_DebugHeapTag_t@std@@PADH@Z)
1>libcpmtd.lib(xdebug.obj) : error LNK2019: unresolved external symbol __free_dbg referenced in function "void __cdecl operator delete(void *,struct std::_DebugHeapTag_t const &,char *,int)" (??3@YAXPAXABU_DebugHeapTag_t@std@@PADH@Z)
1>Debug\GDKTest app.exe : fatal error LNK1120: 2 unresolved externals
1>Build log was saved at "file://c:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\GDKTest app\GDKTest app\Debug\BuildLog.htm"
1>GDKTest app - 3 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Anyone got any ideas on how to fix this, or is that the deal, we get the GDK but not access to C++ libs?