Re: @class causing grief
Re: @class causing grief
- Subject: Re: @class causing grief
- From: Jens Alfke <email@hidden>
- Date: Tue, 18 Mar 2008 08:50:58 -0700
On 18 Mar '08, at 12:32 AM, Scott Squires wrote:
I'm still getting the following error:
error: syntax error before 'AT_NAME' token
...
#import <stdStuff/stdStuff.h>
@class myClass;
(1) Does "stdStuff.h" include the AppKit, Foundation or Cocoa
framework headers? If not, then NSObject itself hasn't been declared.
(2) Inexplicable syntax errors reported on the line following an
#import or #include are often caused by a mistake on the _previous_
statement seen by the compiler, i.e. at the end of the imported
headers. A missing ";" at the end of a declaration is a common source
of these. So have a look at the bottom of stdStuff.h.
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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