Hi
I'm trying to compile the RollingFrictionDemo example stand alone.
So I made a main.cpp, but during linking I got these errors:
undefined reference to `btCapsuleShape::btCapsuleShape(float, float)'
undefined reference to `btCapsuleShapeX::btCapsuleShapeX(float, float)'
undefined reference to `btCapsuleShapeZ::btCapsuleShapeZ(float, float)'
undefined reference to `btConeShape::btConeShape(float, float)'
undefined reference to `btConeShapeX::btConeShapeX(float, float)'
undefined reference to `btConeShapeZ::btConeShapeZ(float, float)'
I compiled with this command:
g++ -c main.cpp -I../../src
g++ -c RollingFrictionDemo.cpp -I../../src
and linked like this:
g++ main.o RollingFrictionDemo.o -lBulletCollision -lBulletDynamics -lLinearMath -lBullet3Common -lBullet3Geometry
The libs are compiled and moved to /usr/lib
If I comment out the functions it compiles and links, but then I get a malloc assertion error.
undefined reference to `btCapsuleShapeX::btCapsuleShapeX(float,float)
-
- Posts: 1
- Joined: Wed Nov 06, 2019 2:25 pm