Re: @class causing grief
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