Errors when compiling

Finally, I decided to create my own post.

I have a problem when compiling, I get a lot of errors saying some b2 functions are undeclared but I don't know why.
Here is what I got :
Code:
main.cpp
In file included from /devkitPro/libogc/include/Box2D.h:39,
                 from /Users/Sheeft/Desktop/scape/source/main.cpp:3:
/devkitPro/libogc/include/../Source/Dynamics/b2WorldCallbacks.h: In member function 'virtual void b2ContactListener::Add(const b2ContactPoint*)':
/devkitPro/libogc/include/../Source/Dynamics/b2WorldCallbacks.h:95: warning: statement has no effect
/devkitPro/libogc/include/../Source/Dynamics/b2WorldCallbacks.h: In member function 'virtual void b2ContactListener::Persist(const b2ContactPoint*)':
/devkitPro/libogc/include/../Source/Dynamics/b2WorldCallbacks.h:99: warning: statement has no effect
/devkitPro/libogc/include/../Source/Dynamics/b2WorldCallbacks.h: In member function 'virtual void b2ContactListener::Remove(const b2ContactPoint*)':
/devkitPro/libogc/include/../Source/Dynamics/b2WorldCallbacks.h:103: warning: statement has no effect
/devkitPro/libogc/include/../Source/Dynamics/b2WorldCallbacks.h: In member function 'virtual void b2ContactListener::Result(const b2ContactResult*)':
/devkitPro/libogc/include/../Source/Dynamics/b2WorldCallbacks.h:106: warning: statement has no effect
linking ...
Game.o: In function `Game::debug()':
/Users/Sheeft/Desktop/scape/source/Game.cpp:482: undefined reference to `b2World::b2World(b2AABB const&, b2Vec2 const&, bool)'
/Users/Sheeft/Desktop/scape/source/Game.cpp:488: undefined reference to `b2World::CreateBody(b2BodyDef const*)'
/Users/Sheeft/Desktop/scape/source/Game.cpp:491: undefined reference to `b2PolygonDef::SetAsBox(float, float)'
/Users/Sheeft/Desktop/scape/source/Game.cpp:493: undefined reference to `b2Body::CreateShape(b2ShapeDef*)'
/Users/Sheeft/Desktop/scape/source/Game.cpp:498: undefined reference to `b2World::CreateBody(b2BodyDef const*)'
/Users/Sheeft/Desktop/scape/source/Game.cpp:501: undefined reference to `b2PolygonDef::SetAsBox(float, float)'
/Users/Sheeft/Desktop/scape/source/Game.cpp:504: undefined reference to `b2Body::CreateShape(b2ShapeDef*)'
/Users/Sheeft/Desktop/scape/source/Game.cpp:505: undefined reference to `b2Body::SetMassFromShapes()'
/Users/Sheeft/Desktop/scape/source/Game.cpp:554: undefined reference to `b2World::Step(float, int)'
/Users/Sheeft/Desktop/scape/source/Game.cpp:562: undefined reference to `b2World::~b2World()'
collect2: ld returned 1 exit status


I searched but I didn't find the answer I excepted.
For the warnings, I commented the lines "with no effect", I don't know if it's good or not… But it doesn't bring other errors, just clip the warnings.

So I'm wondering what can I do to solve it.
For sure I included <Box2D.h> in my file game.cpp.

Any idea ?

Thanks in advance 😀
Some new informations that are interesting :

I tried this code in two different files :
Code:
b2AABB worldAABB;
worldAABB.lowerBound.Set(0, 0);
worldAABB.upperBound.Set(100.0f, 100.0f);

b2Vec2 gravity(0.0f, -10.0f);
bool doSleep = true;

b2World world(worldAABB, gravity, doSleep);


Once in Game.cpp and it doesn't compile with the errors mentioned before.
Once in Ball.cpp where it works !

I don't understand… Why wouldn't it work it some files and would work in others ?
In both I've put #include <Box2D.h> so I don't understand where's the problem… 😮

Any idea would be welcome 😀
Thanks !

EDIT : It's really weird, I've tried to make a function in my file lib.cpp to contain this code (I know it's useless but it was to test).
It compiled well until I call this function in Game.cpp 😢

Why is there such a bug in my app ?

Thanks

EDIT : By looking at the source code, I, found that the constructor was 'b2World::b2World(const b2Vec2& gravity, bool doSleep)' but it seemed to me that we had to put a b2AABB as parameter too, right ?

Original thread: https://box2d.org/forum/viewtopic.php?t=4729