Error in cocos2d-x 0.13.0 with box2d

Error in cocos2d-x 0.13.0 with box2d
0.0 0


Hi, I take the cloned TinyWings game available in

But when I try to compile it, I receive the followng error:

no matching function for call to b2World::b2World(b2Vec2& ,bool);

This is the code that give an error

        b2Vec2 gravity;
    gravity.Set(0.0f, -9.8f);

    world = new b2World(gravity, false);

If someone can help, I’ll be very gratefull
See ya


Hi Fabio,

I have clone and compile with cocos2d-2.0-x-2.0.3 and I have not problems. Maybe you need to update your cocos2d-x version to the late release. However, the problem you are talking about is related to Box2d library check if this library is referenced in the project you have clone. You can try to download again in ZIP format.

I hope it will be helpful