Linker Error

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
GameDude
Posts: 498
Joined: Thu May 24, 2007 12:24 am

Linker Error

Post by GameDude »

Hey Guys,

I keep getting a bunch of linker errors, whenever I try to use bullet. I'll post the errors.

Code: Select all

[Linker Error] undefined reference to `btDbvtBroadphase::btDbvtBroadphase(btOverlappingPairCache*)'
[Linker Error] undefined reference to `btDefaultCollisionConfiguration::btDefaultCollisionConfiguration(btDefaultCollisionConstructionInfo const&)'
[Linker Error] undefined reference to `btCollisionDispatcher::btCollisionDispatcher(btCollisionConfiguration*)'
[Linker Error] undefined reference to `btSequentialImpulseConstraintSolver::btSequentialImpulseConstraintSolver()'
[Linker Error] undefined reference to `btDiscreteDynamicsWorld::btDiscreteDynamicsWorld(btDispatcher*, btBroadphaseInterface*, btConstraintSolver*, btCollisionConfiguration*)'
randomMesh
Posts: 1186
Joined: Fri Dec 29, 2006 12:04 am

Re: Linker Error

Post by randomMesh »

Most likely you linked to the bullet libs in the wrong order. The order is important.

Completely wrong forum, btw. ;)
"Whoops..."
D.Cent
Posts: 18
Joined: Sun May 13, 2007 8:12 pm
Location: Schwieberdingen (Germany)
Contact:

Post by D.Cent »

I compile an Irrlicht program using bullet like this without any problems:

g++ -Wall -g -O3 *.o -o main -lIrrlicht -lGL -lXxf86vm -lXext -lX11 -lbulletdynamics -lbulletcollision -lbulletmath
GameDude
Posts: 498
Joined: Thu May 24, 2007 12:24 am

Post by GameDude »

Sorry about being in the wrong forum, and I'm under Windows, not Linux.
Thanks, it works now.
Post Reply