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?