• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: @class causing grief
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: @class causing grief


  • Subject: Re: @class causing grief
  • From: Quincey Morris <email@hidden>
  • Date: Tue, 18 Mar 2008 01:41:49 -0700


On Mar 18, 2008, at 00:32, Scott Squires wrote:

I'm still getting the following error:
error: syntax error before 'AT_NAME' token

This indicates @class myClass; in the following examples.
Most of these work fine but if I end up swapping #import instead then other areas break the compiler.


Any suggestions on areas to look at (missing @end or something else?)

Thanks.

example:

#import <stdStuff/stdStuff.h>
@class myClass;

@interface anotherClass : NSObject
{

	myClass *theMyClassObject;

}

@end

Don't neglect the obvious. #1 candidate (from personal experience) would be a missing ";" or "@end" or "}" near the end of stdStuff.h. Another candidate might be a "class SomeClass;" where you meant "@class SomeClass;".


You could try compiling something that just #imports stdStuff.h and see what happens, too.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >@class causing grief (From: Scott Squires <email@hidden>)

  • Prev by Date: Re: @class causing grief
  • Next by Date: Re: CoreData code working on Tiger - not on Leopard
  • Previous by thread: Re: @class causing grief
  • Next by thread: Re: @class causing grief
  • Index(es):
    • Date
    • Thread