Unknown Type name ‘class’; did you mean Class’? ERROR on CCApplicationProtocol.h, CCApplication.h and Expected ‘;’ after top level declarator ERROR

I am using cocos2d-x on an iOS game. But I am getting some errors that are preventing the app to compile properly. Here’s a screenshot to emphasize the issues:

Unknown Type Name Error

Any ideas on how to fix those errors? I tried the Xcode suggested methods, like replacing class with Class, but this produces even more errors. Whatever Xcode suggested did not work.

enter image description here


Source: c++

Leave a Reply