Page 1 of 1

Bullet not compiling with -DBT_USE_DOUBLE_PRECISION

Posted: Mon Jul 23, 2007 4:24 pm
by ola
Hi,

I use Bullet (svn version) with double precision (on Linux), by defining

Code: Select all

export CPPFLAGS=-DBT_USE_DOUBLE_PRECISION
Lately it won't compile anymore, the first error is this one:

Code: Select all

C++ ./out/linuxx86/optimize/src/BulletDynamics/ConstraintSolver/btHingeConstraint.o
src/BulletDynamics/ConstraintSolver/btHingeConstraint.cpp: In member function ‘virtual void btHingeConstraint::solveConstraint(btScalar)’:
src/BulletDynamics/ConstraintSolver/btHingeConstraint.cpp:348: error: no matching function for call to ‘btMax(btScalar, float)’
src/BulletDynamics/ConstraintSolver/btHingeConstraint.cpp:265: warning: unused variable ‘damping’
It compiles fine without the -DBT_USE_DOUBLE_PRECISION being set. I recon btMax is a rather new function?

Cheers,
Ola

Posted: Tue Jul 24, 2007 8:04 am
by thebolt
I've submitted a patch to Erwin which fixes the problems building in double precision mode. Hopefully it gets applied as soon as he wakes up and gets to work etc :)

-M

Posted: Tue Jul 24, 2007 6:45 pm
by ola
excellent! thank you :-)

Cheers
Ola