Bullet as a DLL

aboeing
Posts: 33
Joined: Tue Jul 26, 2005 2:28 pm

Bullet as a DLL

Post by aboeing »

I was wondering whether Bullet could be set to build as DLL compatible by default for MSVC?

To do this, the C++ option code generation would need to be set to "Multithreaded DLL", and under the Linker options, Mainfest file, "Generate Manifest" set to yes.

I'm not sure how everyone else uses Bullet, but I would think most people use it as a DLL build.
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: Bullet as a DLL

Post by Erwin Coumans »

For games in general I think it is better to statically link in an open source physics library: it would make it too easy for users to cheat, by replacing the dll by a customized version (although it is still security by obscurity, due to lack of encryption of executables under Windows).

It should be no problem to adapt your build system to create a DLL, did you try this?
Thanks,
Erwin
kingtux
Posts: 2
Joined: Fri Aug 05, 2011 3:33 pm

Re: Bullet as a DLL

Post by kingtux »

I tried and failed. I keep getting unresolved external signal errors. The only library I can compile is LinearMath