This topic is 1327 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hey Folkz,

Hoping someone can help me here. this should b fairly simple.

I am trying to look at C++ again, so am using SFML and Box2D to create a small game, easy. I have setup SFML and have a working program, but ... Box2D! i have looked at every page on Google on how to link the .lib into my project and have followed every step to the T and i still get:

Error	1	error LNK2019: unresolved external symbol "public: __cdecl b2World::b2World(struct b2Vec2 const &)" (??0b2World@@QEAA@AEBUb2Vec2@@@Z) referenced in function "public: __cdecl PhysicsSystem::PhysicsSystem(struct b2Vec2)" (??0PhysicsSystem@@QEAA@Ub2Vec2@@@Z)	F:\Code\ShapeGames\ShapeGames\PhysicsSystem.obj	ShapeGames


Now, i know what the problem is, just not how to solve it.

I have added the Box2D Header to the Additional include Directories and Intelli-sense picks up the correct function definitions etc.

AFAIK, the linker is even picking up Box2D.lib because if i remove the files path from Linker -> general it tells me cannot find file. So it found the file, but isn't linking it? right? wrong? what have i missed? i have followed the tutorials linked below to the word :/

So, i have spent 3hrs on this now. Help me Obi-wan your my only hope.

##### Share on other sites

Its a Win Console application "ShapeGames" (its the only project) using Vs2012, its a 64bit build.

arrrggh, thanks ... 64bit /headdesk x64

Edited by Andy474

##### Share on other sites

Its a Win Console application "ShapeGames" (its the only project) using Vs2012, its a 64bit build.

And your Box2D.lib is x64 as well? (possibly not the issue, but worth checking)

Edited by Orangeatang