I have a header file which looks like this:
But, when I compile the code the terminal print this error:
error: ‘CCSprite’ does not name a type
However, I can use these objects from the init function in the cpp file.
Do you know where the problem cames from?