Hey again...
I tried cleaning my code up abit, by adding some functions into other files (game.h and game.cpp) and now I get
Now, I moved some functions from main.cpp, to game.h and game.cpp, and then I included game.h into main.cpp.Code:1>main.obj : error LNK2005: "class HGE * hge" (?hge@@3PAVHGE@@A) already defined in game.obj 1>main.obj : error LNK2005: "class std::vector<class platform,class std::allocator<class platform> > & plats" (?plats@@3AAV?$vector@Vplatform@@V?$allocator@Vplatform@@@std@@@std@@A) already defined in game.obj 1>main.obj : error LNK2005: "class worldManager mngr" (?mngr@@3VworldManager@@A) already defined in game.obj
I'm not specially good at VS2008, and some google site, talked about VS 6.0 or something, I couldn't figure that out tho...
So is there something I can do with the compiler, or is it the code that can't be done like this?
Thanks in advance