[C++] b2Vec2 segmentation fault

Hello! I used to work with box2dFlash, and now decided to use it with C++.

When I'm trying to define gravity vector I get a segmentation fault:
Code:
     b2Vec2 gravity(0.0f, -10.0f);  // segmentation fault here!!
     
     doSleep = true;

     world = new b2World(gravity,doSleep);



Can you please help me to fix it?

Thanks!

upd. Box2d v2.1.2
That seems a highly unlikely place for a segfault. Double check the line the debugger is telling you... post a stack trace maybe might help too.
Thank you! I checked it and it's not a fault of b2Vec2, sorry. Maybe I was too tired yesterday and made a mistake. Thank you anyway! =)

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