• 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
including cocoa in cpp file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

including cocoa in cpp file


  • Subject: including cocoa in cpp file
  • From: MacUser S <email@hidden>
  • Date: Thu, 4 Jun 2009 03:15:45 -0700 (PDT)

I', trying to  compile a cpp file.i just included include<Cocoa/Cocoa.h>.But it shows so may errors.In build settings ,compiling the sources as its type.Is it missed any project settings?

/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:124: error: expected unqualified-id before '@' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:126: error: expected constructor, destructor, or type conversion before '*' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:127: error: 'NSString' was not declared in this scope
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:127: error: 'aSelectorName' was not declared in this scope
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:129: error: expected constructor, destructor, or type conversion before '*' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:130: error: 'NSString' was not declared in this scope
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:130: error: 'aClassName' was not declared in this scope
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:132: error: expected constructor, destructor, or type conversion before '*' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:133: error: expected constructor, destructor, or type conversion before '*' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:137: error: variable or field 'NSLog' declared void
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:137: error: 'NSString' was not declared in this scope
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:137: error: 'format' was not declared in this scope
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:137: error: expected primary-expression before '...' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:138: error: variable or field 'NSLogv' declared void
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:138: error: 'NSString' was not declared in this scope
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:138: error: 'format' was not declared in this scope
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:138: error: expected primary-expression before 'args'
/System/Library/Frameworks/Foundation.framework/Headers/NSZone.h:8: error: expected unqualified-id before '@' token
/System/Library/Frameworks/Foundation.framework/Headers/NSZone.h:16: error: 'NSString' has not been declared
/System/Library/Frameworks/Foundation.framework/Headers/NSZone.h:17: error: expected constructor, destructor, or type conversion before '*' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:8: error: expected unqualified-id before '@' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:9: error: expected unqualified-id before '@' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:13: error: expected unqualified-id before '@' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:16: error: expected unqualified-id before '-' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:18: error: expected unqualified-id before '-' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:19: error: expected unqualified-id before '-' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:20: error: expected unqualified-id before '-' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:21: error: expected unqualified-id before '-' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:23: error: expected unqualified-id before '-' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:24: error: expected unqualified-id before '-' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:25: error: expected unqualified-id before '-' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:27: error: expected unqualified-id before '-' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:29: error: expected unqualified-id before '-' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:30: error: expected unqualified-id before '-' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:31: error: expected unqualified-id before '-' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:33: error: expected unqualified-id before '-' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:35: error: expected unqualified-id before '-' token
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:36: error: expected unqualified-id before '-' token




_______________________________________________

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

  • Follow-Ups:
    • Re: including cocoa in cpp file
      • From: Nick Zitzmann <email@hidden>
    • Re: including cocoa in cpp file
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: How to lock an object?
  • Next by Date: Re: NSNull and distinct objective-C type
  • Previous by thread: Re: Cocoa-dev Digest, Vol 6, Issue 831
  • Next by thread: Re: including cocoa in cpp file
  • Index(es):
    • Date
    • Thread