I've been dumbfounded for the past two hours and cant seem to find a solution to this.
I thought I set everything up correctly, Under the folder directories settings, I added the include path to the include directories and the box2d path to the source code directories. but I keep getting these 5 linker errors that have to do with the b2World class.
Usually those errors are spawned cause functions are used but the linker can find the source code, so I went a head and added every folder path to the source directory settings... still didn't work.
any help would be most appreciated.
I thought I set everything up correctly, Under the folder directories settings, I added the include path to the include directories and the box2d path to the source code directories. but I keep getting these 5 linker errors that have to do with the b2World class.
Code:
game.obj : error LNK2019: unresolved external symbol "public: struct b2Body * __thiscall b2World::CreateBody(struct b2BodyDef const *)" (?CreateBody@b2World@@QAEPAUb2Body@@PBUb2BodyDef@@@Z) referenced in function "int __cdecl Game_Init(struct HWND__ *)" (?Game_Init@@YAHPAUHWND__@@@Z)
game.obj : error LNK2019: unresolved external symbol "public: __thiscall b2World::b2World(struct b2AABB const &,struct b2Vec2 const &,bool)" (??0b2World@@QAE@ABUb2AABB@@ABUb2Vec2@@_N@Z) referenced in function "int __cdecl Game_Init(struct HWND__ *)" (?Game_Init@@YAHPAUHWND__@@@Z)
game.obj : error LNK2019: unresolved external symbol "public: void __thiscall b2World::Step(float,int)" (?Step@b2World@@QAEXMH@Z) referenced in function "void __cdecl Game_Run(struct HWND__ *)" (?Game_Run@@YAXPAUHWND__@@@Z)
game.obj : error LNK2019: unresolved external symbol "public: __thiscall b2World::~b2World(void)" (??1b2World@@QAE@XZ) referenced in function "public: void * __thiscall b2World::`scalar deleting destructor'(unsigned int)" (??_Gb2World@@QAEPAXI@Z)
C:\Documents and Settings\Compaq_Owner\My Documents\Visual Studio 2005\Projects\ZoloEngine\Debug\PhysTest.exe : fatal error LNK1120: 4 unresolved externals
game.obj : error LNK2019: unresolved external symbol "public: __thiscall b2World::b2World(struct b2AABB const &,struct b2Vec2 const &,bool)" (??0b2World@@QAE@ABUb2AABB@@ABUb2Vec2@@_N@Z) referenced in function "int __cdecl Game_Init(struct HWND__ *)" (?Game_Init@@YAHPAUHWND__@@@Z)
game.obj : error LNK2019: unresolved external symbol "public: void __thiscall b2World::Step(float,int)" (?Step@b2World@@QAEXMH@Z) referenced in function "void __cdecl Game_Run(struct HWND__ *)" (?Game_Run@@YAXPAUHWND__@@@Z)
game.obj : error LNK2019: unresolved external symbol "public: __thiscall b2World::~b2World(void)" (??1b2World@@QAE@XZ) referenced in function "public: void * __thiscall b2World::`scalar deleting destructor'(unsigned int)" (??_Gb2World@@QAEPAXI@Z)
C:\Documents and Settings\Compaq_Owner\My Documents\Visual Studio 2005\Projects\ZoloEngine\Debug\PhysTest.exe : fatal error LNK1120: 4 unresolved externals
Usually those errors are spawned cause functions are used but the linker can find the source code, so I went a head and added every folder path to the source directory settings... still didn't work.
any help would be most appreciated.