Code::Blocks, Build and Run but application crash

Hi, I recently get interested about Box2D, i'm on version 2.3.0 C++.
I use Code::Blocks 12.11 on windows 7.
I just try to code and run the simple box2D HelloWord, it compiles fine but when the output application runs it crash, no specific error windows just say the application stopped working. (Even when I copy/paste the code of HelloWorld.cpp)
I have the headers and libBox2D.a in the right place, I added -lBox2D to the linker, there is no error at all in compiling.
I build the library myself with cmake and codeblocks and I've been able to run the testbed and helloworld app.
What am I missing?
Try building everything in debug mode, then you should be able to see where it crashes with the debugger and check what source code lines are causing it.
Here is the result of the debugger:
Image

I never used debugger before, if you could help me read through it.
This is just the Box2D code itself. What part of your code was calling this, is the question.
Usually a 'this' pointer being 0x0 is a problem...
It's the HelloWorld.cpp that I'm trying to compile and run (the one provided in Box2D sources and in manual tutorial) apparently it sounds to be b2Vec2 the problem.

Code: Select all

// Define the gravity vector.
   b2Vec2 gravity(0.0f, -10.0f);
Any idea, is it an error in the library that I compiled?
This is really weird. I would guess that it could be an incompatibility with the .a file you're linking to. Then again, if you also compiled that yourself using the same compiler, there should be no reason for it to be incompatible.

Original thread: https://box2d.org/forum/viewtopic.php?t=9604