When I try to run a program with Box2D included, it compiles just fine, but when it gets to linking, I get this:
1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall b2World::~b2World(void)" (??1b2World@@QAE@XZ) referenced in function "class b2World * __cdecl xyMakeWorld(float,float)" (?xyMakeWorld@@YAPAVb2World@@MM@Z)
1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall b2World::b2World(struct b2Vec2 const &)" (??0b2World@@QAE@ABUb2Vec2@@@Z) referenced in function "class b2World * __cdecl xyMakeWorld(float,float)" (?xyMakeWorld@@YAPAVb2World@@MM@Z)
1>C:\Users\Midi\Documents\Visual Studio 2008\Projects\XYG\Debug\XYG Template.exe : fatal error LNK1120: 2 unresolved externals
When I look at the b2World class, I see definitions for all its functions in the source except the constructor and deconstructor. Where are these functions? Is there a missing .lib file I'm supposed to link to? When I downloaded Box2D release, all that was there was source, so I figured it must just be raw code without a .lib file (cuz I thought that would make it purely cross-platform, not having to depend on a different library format for each OS).
Does anyone know what I'm doing wrong here?
1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall b2World::~b2World(void)" (??1b2World@@QAE@XZ) referenced in function "class b2World * __cdecl xyMakeWorld(float,float)" (?xyMakeWorld@@YAPAVb2World@@MM@Z)
1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall b2World::b2World(struct b2Vec2 const &)" (??0b2World@@QAE@ABUb2Vec2@@@Z) referenced in function "class b2World * __cdecl xyMakeWorld(float,float)" (?xyMakeWorld@@YAPAVb2World@@MM@Z)
1>C:\Users\Midi\Documents\Visual Studio 2008\Projects\XYG\Debug\XYG Template.exe : fatal error LNK1120: 2 unresolved externals
When I look at the b2World class, I see definitions for all its functions in the source except the constructor and deconstructor. Where are these functions? Is there a missing .lib file I'm supposed to link to? When I downloaded Box2D release, all that was there was source, so I figured it must just be raw code without a .lib file (cuz I thought that would make it purely cross-platform, not having to depend on a different library format for each OS).
Does anyone know what I'm doing wrong here?