Linkage problems

inakin
Posts: 9
Joined: Wed Jan 16, 2008 6:36 pm

Linkage problems

Post by inakin »

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
mreuvers
Posts: 69
Joined: Sat May 10, 2008 8:39 am

Re: Linkage problems

Post by mreuvers »

Just look up which file implements btDefaultCollisionConfiguration and make sure it's part of the object files you link with.