I am getting the following errors after compiling this code -
I am using Visual Studio 2010
Can anybody help me out. I am struck cold just at the beginning of using Dark GDK 2.0 RC4 that I purchased few days back.
#include <include/darkgdk/core/darkgdk.h>
#include <include/darkgdk/initDarkGDK.h>
#include <include/darkgdk/simpleWindow.h>
#include <windows.h>
using namespace std;
int __stdcall WinMain(HINSTANCE, HINSTANCE, LPSTR, int) {
HWND hWnd;
// Initialize DarkGDK by telling it where the engine dll is
if (!initDarkGDK("gdkengine.dll"))
return 1;
// Create a window
hWnd = openWindow(0, 0, 640, 480, "DarkGDK - Game Developer's Toolkit",
WS_OVERLAPPED | WS_CLIPSIBLINGS | WS_CAPTION | WS_SYSMENU |
WS_CLIPCHILDREN, true);
// Attach the DarkGDK screen to the window
dbOpenScreen(hWnd, 0, 0, 640, 480);
// Show the window
ShowWindow(hWnd, SW_SHOW);
do {
// Update the screen
dbSync();
}
while (windowEvent() != WM_CLOSE);
dbCloseScreen();
return 0;
}
{/code]
Error 1 error LNK2019: unresolved external symbol "unsigned int __cdecl windowEvent(void)" (?windowEvent@@YAIXZ) referenced in function _WinMain@16
E:\DARK GDK 2.0\DARK_GDK_2.0_WORKSPACE\my_project\main.obj
my_project
Error 2 error LNK2019: unresolved external symbol "struct HWND__ * __cdecl openWindow(int,int,int,int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,int,bool)" (?openWindow@@YAPAUHWND__@@HHHHV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H_N@Z) referenced in function _WinMain@16 E:\DARK GDK 2.0\DARK_GDK_2.0_WORKSPACE\my_project\main.obj my_project
Error 3 error LNK2019: unresolved external symbol "bool __cdecl initDarkGDK(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >
" (?initDarkGDK@@YA_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z) referenced in function _WinMain@16 E:\DARK GDK 2.0\DARK_GDK_2.0_WORKSPACE\my_project\main.obj my_project
Error 4 error LNK1120: 3 unresolved externals E:\DARK GDK 2.0\DARK_GDK_2.0_WORKSPACE\my_project\Debug\my_project.exe my_project
Thanks,