c++ - cocos2d-x and box2d linking error -
i have troubles working in cocos2d-x v3
. actually, want init box2d world object
. have created game project properly, given in cocos2d-x
manual. what's trouble:
b2vec2 gravity = b2vec2(0.0f, -10.0f); b2world world(gravity);
in code second line gives compiler
'unresolved external symbol error':(
without instantinating b2world
object, compiles , works fine.
have faced problem?
this common linker error in visual studio , have add libbox2d.lib
in project properties.
right click project -> project properties -> linker -> input -> additional dependencies
now edit , add libbox2d.lib
@ end , run project again.
Comments
Post a Comment