when i try to compile bullet with g++-3.4.6 or g++-4.1.1 i get the following errors:
Code: Select all
In file included from /mnt/kk/devel/bullet-2.50b/src/BulletCollision/CollisionDispatch/btCollisionDispatcher.h:25,
from /mnt/kk/devel/bullet-2.50b/src/BulletCollision/CollisionDispatch/btCollisionWorld.h:73,
from /mnt/kk/devel/bullet-2.50b/src/btBulletCollisionCommon.h:22,
from /mnt/kk/devel/bullet-2.50b/src/btBulletDynamicsCommon.h:20,
from test04.cpp:6:
/mnt/kk/devel/bullet-2.50b/src/BulletCollision/CollisionDispatch/../../LinearMath/btAlignedObjectArray.h: In member function `void btAlignedObjectArray<T>::destroy(int, int)':
/mnt/kk/devel/bullet-2.50b/src/BulletCollision/CollisionDispatch/../../LinearMath/btAlignedObjectArray.h:58: error: expected class-name before '(' token
/mnt/kk/devel/bullet-2.50b/src/BulletCollision/CollisionDispatch/../../LinearMath/btAlignedObjectArray.h:58: error: `model' was not declared in this scope
/mnt/kk/devel/bullet-2.50b/src/BulletCollision/CollisionDispatch/../../LinearMath/btAlignedObjectArray.h:58: error: expected primary-expression before ')' token
/mnt/kk/devel/bullet-2.50b/src/BulletCollision/CollisionDispatch/../../LinearMath/btAlignedObjectArray.h: In member function `void btAlignedObjectArray<T>::pop_back()':
/mnt/kk/devel/bullet-2.50b/src/BulletCollision/CollisionDispatch/../../LinearMath/btAlignedObjectArray.h:125: error: expected class-name before '(' token
/mnt/kk/devel/bullet-2.50b/src/BulletCollision/CollisionDispatch/../../LinearMath/btAlignedObjectArray.h:125: error: `model' was not declared in this scope
/mnt/kk/devel/bullet-2.50b/src/BulletCollision/CollisionDispatch/../../LinearMath/btAlignedObjectArray.h:125: error: expected primary-expression before ')' token
make: *** [all] Error 1
i used to comment these lines out:
Code: Select all
btAlignedObjectArray.h line 58:
m_data[i].~T();
Code: Select all
btAlignedObjectArray.h line 125:
m_data[m_size].~T();
so is there any other way to do that?