Error while initialize object of b2World in cocos2d-x v3.2

I am simply making variable
static b2World *world; and also importing #import "Box2D/Box2D.h"
in HelloWorldScene.h
and going to make object in HelloWorldScene.cpp like
world = new b2World(b2Vec2(0, 0));
but finally encountered and ERROR!!! :frowning:
What should i do???

error: ld returned 1 exit status
Error:(162) undefined reference to 'HelloWorld::world

#include ā€œBox2D/Box2D.hā€

hmm changed #import "Box2D/Box2D.h" to #include "Box2D/Box2D.h"
but
still same problem!!!

look in cpp-tests for examples. This should work #include <Box2D/Box2D.h>

oh it worked :slight_smile:
I was writing
#include "Box2D/Box2D.h" while throwing error
but working well when I use write
#include <Box2D/Box2D.h>
hhuuuffffffffffffffffffffffffffffffā€¦