1)- set the project dependencies so you app depends on the Box2D project?
😕 How would i do that?
2)-remove the box2d.lib from you linker options?
should box2d_d.lib still be in my linker list? if i remove box2d.lib but keep box2d_d.lib, there is no changes. If i remove both box2d.lib and box2d_d.lib then i get the following errors:
3) - make sure all projects are using the same C lib option (/MT)?
All projects uses (/MD).
😕 How would i do that?
2)-remove the box2d.lib from you linker options?
should box2d_d.lib still be in my linker list? if i remove box2d.lib but keep box2d_d.lib, there is no changes. If i remove both box2d.lib and box2d_d.lib then i get the following errors:
Quote:
Error 1 error LNK2019: unresolved external symbol "public: __thiscall b2World::~b2World(void)" (??1b2World@@QAE@XZ) referenced in function _SDL_main main.obj
Error 2 error LNK2019: unresolved external symbol "public: void __thiscall b2World::Step(float,int)" (?Step@b2World@@QAEXMH@Z) referenced in function _SDL_main main.obj
Error 3 error LNK2019: unresolved external symbol "public: void __thiscall b2Body::SetOriginPosition(struct b2Vec2 const &,float)" (?SetOriginPosition@b2Body@@QAEXABUb2Vec2@@M@Z) referenced in function _SDL_main main.obj
Error 4 error LNK2019: unresolved external symbol "public: struct b2Body * __thiscall b2World::CreateBody(struct b2BodyDef const *)" (?CreateBody@b2World@@QAEPAUb2Body@@PBUb2BodyDef@@@Z) referenced in function _SDL_main main.obj
Error 5 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 _SDL_main main.obj
Error 6 fatal error LNK1120: 5 unresolved externals C:\Documents and Settings\mads\Dokumenter\Visual Studio 2005\Projects\sdl physics\Release\sdl physics.exe
Error 2 error LNK2019: unresolved external symbol "public: void __thiscall b2World::Step(float,int)" (?Step@b2World@@QAEXMH@Z) referenced in function _SDL_main main.obj
Error 3 error LNK2019: unresolved external symbol "public: void __thiscall b2Body::SetOriginPosition(struct b2Vec2 const &,float)" (?SetOriginPosition@b2Body@@QAEXABUb2Vec2@@M@Z) referenced in function _SDL_main main.obj
Error 4 error LNK2019: unresolved external symbol "public: struct b2Body * __thiscall b2World::CreateBody(struct b2BodyDef const *)" (?CreateBody@b2World@@QAEPAUb2Body@@PBUb2BodyDef@@@Z) referenced in function _SDL_main main.obj
Error 5 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 _SDL_main main.obj
Error 6 fatal error LNK1120: 5 unresolved externals C:\Documents and Settings\mads\Dokumenter\Visual Studio 2005\Projects\sdl physics\Release\sdl physics.exe
3) - make sure all projects are using the same C lib option (/MT)?
All projects uses (/MD).