I'm using MSVC 2008 Express.
I setup a project to compile a lib of all the PureGDK cpp files. Compiles with no errors in both debug and release.
I've setup a new project and set the include path and also set the additional dependencies to the libs, both debug and release versions. I've also ignored the libs MSVCRTD and MSVCPRTD (They're the debug ones).
After googling, I've included <string>, but still getting these errors:
Linking...
LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/LTCG' specification
PGDKLib.lib(pgdk-input.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) 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> >::operator=(char const *)" (__imp_??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@PBD@Z)
PGDKLib.lib(pgdk-puregdk.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) 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> >::operator=(char const *)" (__imp_??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@PBD@Z)
PGDKLib.lib(pgdk-input.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(struct std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::_Has_debug_it)" (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@U_Has_debug_it@01@@Z)
PGDKLib.lib(pgdk-puregdk.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(struct std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::_Has_debug_it)" (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@U_Has_debug_it@01@@Z)
D:\Cpp\Win32_PGDK\Debug\2dLevelEditor.exe : fatal error LNK1120: 2 unresolved externals
Build log was saved at "file://d:\Cpp\Win32_PGDK\2dLevelEditor\Debug\BuildLog.htm"
2dLevelEditor - 5 error(s), 1 warning(s)
I'm hoping that someone out there can help me understand what I am doing wrong.
Here's my source so far:
// Main start for 2dLevelEditor
#include "windows.h"
#include <string>
#include <iostream>
#include "initPureGDK.h"
#include "simpleWindow.h"
#include "core/puregdk.h"
HWND main_window;
int CALLBACK WinMain( __in HINSTANCE hInstance, __in HINSTANCE hPrevInstance, __in LPSTR lpCmdLine, __in int nCmdShow )
{
// Initialize PureGDK by telling it where the engine dll is
if (!initPureGDK("gdkengine.dll"))
return 1;
main_window = (HWND) openWindow(0, 0, 800, 600, "2D RPG Level Editor");
dbOpenScreen(main_window,0,0,800,600);
while (dbEscapeKey()==0) ;
return true;
}
I'm keeping my fingers crossed...
Mental arithmetic? Me? (That's for computers) I can't subtract a fart from a plate of beans!
Warning! May contain Nuts!