Shihui Guo

Bullet CProfileManager Issues

The bug messages are just loads of:

btSimulationIslandManager.cpp:(.text+0x880): undefined reference to `CProfileManager::Start_Profile(char const*)'
btSimulationIslandManager.cpp:(.text+0x1434): undefined reference to `CProfileManager::Stop_Profile()'

The reason for this is the linking order of bullet libraries, my previous order is "-lLinearMath -lBulletDynamics -lBulletCollision", but the right order is "-lBulletDynamics -lBulletCollision -lLinearMath"

Alternatively you can switch the off the profiling by defining -DBT_NO_PROFILE, or edit and enable the line in Bullet/src/LinearMath/btQuickprof.h

References:
http://bulletphysics.org/Bullet/phpBB3/viewtopic.php?f=9&t=2949

点击查看评论