Quick tip: cassert not found using box2d with cocos2d

Today everything worked fine until I added new CCLayer subclass. When trying to build compiler showed error at

#include <cassert>

in libs/Box2D/Common/b2Settings.h. The reasons is simple – new class file created with xcode has .m extension, just rename it to .mm and everything will work as before.


Leave a Reply