Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 932
Faheem Rajput Avatar asked Aug 24 '12 11:08

Faheem Rajput


2 Answers

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++.

like image 116
LearnCocos2D Avatar answered Nov 20 '22 20:11

LearnCocos2D


change your file extension .mm thats it

like image 30
Hardik rami Avatar answered Nov 20 '22 18:11

Hardik rami