• 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: 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

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

  • Prev by Date: Re: Setting Web Proxy programmatically
  • Next by Date: Re: Setting Web Proxy programmatically
  • Previous by thread: Re: @class causing grief
  • Next by thread: Re: @class causing grief
  • Index(es):
    • Date
    • Thread