Thursday 15 January 2015

iphone - Objective-C error: expected '=', ',', ';', 'asm' or '__attribute__' before 'class' -


I'm getting this from an iPhone app that I'm working on. Not sure about interpreting the error ... it has been thrown in some place in my code. I can not see any pattern of the incident.

Is this a common error? what is the meaning of this?

The error posted by you indicates that there is a syntax error around your use Class . Manually examine the first reported error, and you can keep the reason in mind.

To help you debug, include the surrounding code so that we can assist you.

Common reason:

  1. For the forward class announcement in the headers, @ is missing @
  2. Li> Missed ; An enum, a structure, or a typedef
  3. after the declaration of the ciped C ++ code, where class is used to declare a structure , But the code is invalid in the purpose-C

No comments:

Post a Comment