Undefined reference from bullet 2.72 to 2.81

Pacha

15-06-2013 03:36:37

Hello everyone.

I downloaded some Ogre code I found online with some Character controller and I wanted to check it out, the thing is that I am having some undefined reference problems.

Here are the errors:

make: *** [ogre-bullet-playground] Error 1
undefined reference to `btCapsuleShape::btCapsuleShape(float, float)'
undefined reference to `btRigidBody::btRigidBody(float, btMotionState*, btCollisionShape*, btVector3 const&)'
undefined reference to `btRigidBody::btRigidBody(float, btMotionState*, btCollisionShape*, btVector3 const&)'
undefined reference to `btConvexHullShape::btConvexHullShape(float const*, int, int)'
undefined reference to `btKinematicCharacterController::btKinematicCharacterController(btPairCachingGhostObject*, btConvexShape*, float, int)'


Here are my libraries:

OgreMain
OIS
boost_system
OgreTerrain
BulletDynamics
BulletCollision
LinearMath


What might be the problem? Thank you!

AlexeyKnyshev

15-06-2013 06:16:07

There is problem in linker flags. Do you use CMake? If you do, run make like this: "make VERBOSE=1". And paste here linker command execution log.

Best regards, Alexey