I just wrote a tiny program for testing Bullet Physics:
#include <btBulletDynamicsCommon.h>
int main()
{
btBroadphaseInterface *broadphase = new btDbvtBroadphase();
delete broadphase;
return 0;
}
But as soon as I run the program, it just crashes (Windows says that this program is not working anymore).
My compiler is MinGW 4.8.1 and I use Windows 8.1.
This is my build command:
g++ -std=c++11 -O0 -o bulletTest.exe bulletTest.cpp -lBulletDynamics -lBulletCollision -lLinearMath -static
What do I have to change to let the program run properly?
I would suggest that you implement the 'hello world' example for bullet.
http://www.bulletphysics.org/mediawiki-1.5.8/index.php/Hello_World
It initializes the same way as you, but more classes, it's a minimum example for initializing bullet properly.