I'm struggling with a linker error. I don't fully understand the problem and I'm out of ideas what else to try. Can someone please give advice?
The problem looks like this. I moved a Qt / Bullet Physics project to a new Win7 64 bit PC. Before I was developing it on a 32 bit Win7. The project compiles nicely there and runs without problems. I use the same Qt version 2010.05 on the new PC and I used the MinGW 4.4.0 that comes with it to compile the Bullet Physics library that is linked to my project. But when I build the project, I get linker errors like this:
The corresponding lines in the source look like this:./release\Joint.o:Joint.cpp:(.text+0x22e7): undefined reference to `btRigidBody::btRigidBody(float, btMotionState*, btCollisionShape*, btVector3 const&)'
./release\GroundPlane.o:GroundPlane.cpp:(.text+0x246): undefined reference to `btStaticPlaneShape::btStaticPlaneShape(btVector3 const&, float)'
Code: Select all
btRigidBody rigidBody = new btRigidBody(mass, &motionState, collisionShape, inertia);
btCollisionShape collisionShape = new btStaticPlaneShape(btVector3(0, 0, 1), 0);
Thanks,
Marcell