在 Eclipse 中编译时出现以下错误:
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)'
这些是我正在使用的库:
OgreMain
OIS
boost_system
OgreTerrain
BulletDynamics
BulletCollision
LinearMath
有人知道如何解决这个问题吗?我认为这些库还可以,我不知道为什么不编译。