i am trying to use double precision.
so i defined BT_USE_DOUBLE_PRECISION 1 in btScalar.h and at the top of my project header.
when i try to compile my project with g++-3.4.6 i get the following errors:
Code: Select all
/tmp/cc2VwyqF.o: In function `main':
/mnt/kk/devel/opengl/test04.cpp:218: undefined reference to `btRigidBody::btRigidBody(double, btMotionState*, btCollisionShape*, btVector3 const&, double, double, double, double)'
/mnt/kk/devel/opengl/test04.cpp:295: undefined reference to `btRigidBody::btRigidBody(double, btMotionState*, btCollisionShape*, btVector3 const&, double, double, double, double)'
/tmp/cc2VwyqF.o: In function `setInertia(btRigidBody*)':
/mnt/kk/devel/opengl/test04.cpp:487: undefined reference to `btRigidBody::setMassProps(double, btVector3 const&)'
Code: Select all
bter = new btRigidBody(
btScalar(0.),
motionstate,
//new btBoxShape(btVector3(20,2,20)),
gshter,
btVector3(0., 0., 0.),
btScalar(0.),
btScalar(0.),
btScalar(1.),
btScalar(0.)
);
maybe i forgot something?