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
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