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!!!
What should i do???
error: ld returned 1 exit status
Error:(162) undefined reference to 'HelloWorld::world
oh it worked
I was writing #include "Box2D/Box2D.h" while throwing error
but working well when I use write #include <Box2D/Box2D.h>
hhuuuffffffffffffffffffffffffffffffā¦