How do I include Bullet Dynamics as a library for my Project

RaenirSalazar
Posts: 5
Joined: Fri Apr 25, 2014 4:22 pm

How do I include Bullet Dynamics as a library for my Project

Post by RaenirSalazar »

I just don't know, I'm trying to include it but I'm getting unresolved externals up the wazoo.

LNK2019: unresolved external symbol "public: __thiscall btRigidBody::btRigidBody(struct btRigidBody::btRigidBodyConstructionInfo const &)" (??0btRigidBody@@QAE@ABUbtRigidBodyConstructionInfo@0@@Z) referenced in function "public: void __thiscall controls::btInitDefaultMotionState(void)" (?btInitDefaultMotionState@controls@@QAEXXZ)

I downloaded bullet-2.81-rev2613, I opened it in VS2010 and build all, when I included it in my project it said that it could not open "BulletDynamics.lib", I renamed "BulletDynamics_vs2010_debug.lib" to it and I just got dozens of linker errors.

Are there clear instructions on how to build and include it without external errors?
Basroil
Posts: 463
Joined: Fri Nov 30, 2012 4:50 am

Re: How do I include Bullet Dynamics as a library for my Pro

Post by Basroil »

Go to the builds folder and click the vs2010.bat file. Then go into the new folder created (assuming it wasn't there before using the bat file, it should be) and open the solution file. You should be able to build all the projects in debug or release without issues.

Also don't forget to clean the solution every once in a while, some linker errors are just due to garbage files being left over.