iphonecocos2d-iphonegame-physicsbox2d-iphone

cassert file not found but i use Box2d template


i am using cocos2d template with Box2d but when i import Box2d.h in my project it gives me error cassert fiel not found i have cocos2d version 2.0 please help me


Solution

  • Make sure all your project's source code files have the file extension .mm and not .m. Or set each .m file's type to Objective-C++.