I use Debian Sid. I am trying to update to version 2.70 from version 2.67. I have a makefile which links with the libraries with the next command:
gcc -o PhysicsEngine simulator.o Bullet.o FileStoreI.o PhysicsEngineI.o main.o -g -Wall -lIce -lIceUtil -lGL -lglut -L/usr/lib/bullet -lglui -lbulletopenglsupport -lbulletdynamics -lbulletcollision -lbulletmath
But I have this error during linkage:
Bullet.o: In function `Bullet::initPhysics(std::vector<Simulator::AgentState, std::allocator<Simulator::AgentState> >)':
/var/www/ice/cpp/Bullet.cpp:62: undefined reference to `btDefaultCollisionConfiguration::btDefaultCollisionConfiguration(btStackAlloc*, btPoolAllocator*, btPoolAllocator*)'
Thanks
Linkage problems
-
- Posts: 69
- Joined: Sat May 10, 2008 8:39 am
Re: Linkage problems
Just look up which file implements btDefaultCollisionConfiguration and make sure it's part of the object files you link with.