I followed the building file and made everything but how do I set it up to work in code:blocks. Sorry if this isn't a Box2D specific problem but I can't find anything helpful. I'm using arch linux.
EDIT: I just had to add -lBox2D in the other linkers after installing the package. I was making it way more complicated than it needed to be.
I am having the same issue.
This is my post but nobody has replied.
Post:
Hello everybody.
I working on a school project that involves some physics and I was hoping to use Box2d on it but I am having some issues with the compiler.
I am using code blocks and this is the error that I am getting.
||=== test_box2d, Release ===|
obj\Release\main.o:main.cpp|| undefined reference to `b2World::b2World(b2Vec2 const&, bool)'|
obj\Release\main.o:main.cpp|| undefined reference to `b2World::~b2World()'|
obj\Release\main.o:main.cpp|| undefined reference to `b2World::~b2World()'|
||=== Build finished: 3 errors, 0 warnings ===|
I am trying to run the helloword sample that comes with box2d. I already add my header s to the main.cpp
#include <box2d.h>
I have been looking around and I was not able to find a solution for this, a few posts here on the forum but it did not solve my problem. Like this one (viewtopic.php?f=7&t=321&p=26880&hilit=codeblocks#p26880) . The weird thing is that some of the classes like b2Vec2 and b2BodyDef are working properly.
Does anyone have ever get the same problems I am getting. I will realy appreciate if someone points me to the right direction.
Thanks a lot
EPadilla
EPadilla