Ok, so I'm basically learning the ropes of Visual Studio at the moment. But it's not going too well, as I'm trying to do so between work hours.
The problem I've been having lately is that I can't get the built-in String class to function properly and it seems to come down to my lib and header directories.
I keep getting this message:
"defaultlib 'libcmt.lib' conflicts with use of other libs"
And this is just for testing the following:
#include "DarkGDK.h"
#include <string>
using namespace std;
string TestString ( "Mongo" );
// the main entry point for the application is this function
void DarkGDK ( void )
{
dbSyncOn ( );
dbBackdropOn ( );
dbColorBackdrop ( 0 );
// our main loop
while ( LoopGDK ( ) )
{
dbSetCursor ( 0, 0 );
dbPrint ( dbStr( dbScreenFPS ( ) ) );
// update the screen
dbSync ( );
}
// return back to windows
return;
}
The full error message terror looks like this:
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>libcpmtd.lib(stdthrow.obj) : error LNK2019: unresolved external symbol __CrtDbgReportW referenced in function "void __cdecl std::_Debug_message(wchar_t const *,wchar_t const *,unsigned int)" (?_Debug_message@std@@YAXPB_W0I@Z)
1>Debug\GDKTest.exe : fatal error LNK1120: 3 unresolved externals
Anyone better versed in Visual Studio/C++ that could tell me what I must be doing wrong?