Funny how I should encounter this problem. Everything was fine until I decided to change the whole structure of my program so it was more object oriented... It screwed everything up. I decided to edit my code and make it as simple as possible. And I did:
#include <iostream>
#include "DarkGDK.h"
using namespace std;
void DarkGDK ( void )
{
// Globally set Sync rate and maximum sync rate is 60 fps
dbSyncOn ( );
dbSyncRate ( 60 );
// Ask user for value
dbPrint ( "Enter a value to be saved\n" );
// Save value
char save;
cin >> save;
// now we come to our main loop, we call LoopGDK so some internal
// work can be carried out by the GDK
while ( LoopGDK ( ) )
{
// here we make a call to update the contents of the screen
dbSync ( );
}
// and now everything is ready to return back to Windows
return;
}
And look what it produced
(and I tried /NODEFAULTLIB[:library] and it screwed up even more stuff):
1>Linking...
1>libcpmtd.lib(xdebug.obj) : warning LNK4098: defaultlib 'libcmt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
1>Prerequisites.obj : error LNK2019: unresolved external symbol __CrtDbgReportW referenced in function "protected: virtual char const * __thiscall std::ctype<char>::_Do_widen_s(char const *,char const *,char *,unsigned int)const " (?_Do_widen_s@?$ctype@D@std@@MBEPBDPBD0PADI@Z)
1>libcpmtd.lib(cin.obj) : error LNK2001: unresolved external symbol __CrtDbgReportW
1>libcpmtd.lib(stdthrow.obj) : error LNK2001: unresolved external symbol __CrtDbgReportW
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(_tolower.obj) : error LNK2019: unresolved external symbol __calloc_dbg referenced in function __Getctype
1>Debug\Zelda Showers of Light.exe : fatal error LNK1120: 4 unresolved externals
Help me
At first glance I thought it was project references but I'm not so sure now...
dbPrint ( "Sig" );