I have been playing with the code for Box2d and everything went ok. But when I try to make a new project from the template ot goes wrong.
First I create the project and compile. No problems
Then I add the folder "external/Box2d" to the headers search path, and then #import "Box2D.h" into the HelloWorldScene.h
It brings a lot of errors. Most of them are solved if I rename the .m files as .mm (or change them to FileType "sourcecode.cpp.objcpp".
But there are still two errors.
"Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.0 failed with exit code 1"
I have tryed linking the "libbox2d.a" generated from the cocos2d-iphone project but no luck there.
Can anyone help?