|
From: Vlada D. <dj...@im...> - 2003-06-13 11:35:30
|
Hi. I just got a book about games programming and I got stuck in the first step. When trying to compile an example from the book, I keep getting linker errors. The output looks like this: C:\Visual\engine\main.o [Warning] In function `GameEngine::GetFrameDelay(void)': //C/Visual/engine/main.cpp(.bss+0x0) C:\Visual\engine\main.cpp(.bss+0x0) multiple definition of `_pGame' //C/Visual/engine/GameEngine.h C:\Visual\engine\skeleton.o(.bss+0x0) first defined here C:\Visual\engine\GameEngine.o [Warning] In function `_10GameEngineP11HINSTANCE__PcT2UsUsii': [Linker error] undefined reference to `GameEngine::m_pGameEngine' I can't figure out what this means. I tried looking for multiple definitions of _pGame, but I can't find any. Can something else be causing this? As for the other error, m_pGameEngine is a member of GameEngine class and it's referenced only in the class constructor. Can somebody give me a hint about possible problems? Thanks. ------------ Vlada |