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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to