• 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
[Solved] Re: When adding Cocoa classes I get a lot of compile errors automatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Solved] Re: When adding Cocoa classes I get a lot of compile errors automatically


  • Subject: [Solved] Re: When adding Cocoa classes I get a lot of compile errors automatically
  • From: Jason S-M <email@hidden>
  • Date: Wed, 5 Jan 2011 10:59:32 -0800

For the archives: The answer was choosing File-Type of Objective-C++ since I had a mixture of CPP and MM files. I did this in the build target settings.

Thanks Jean-Daniel from the Carbon mailing list for shedding some light to the problem.

On Jan 4, 2011, at 6:53 AM, Scott Ribe wrote:

> On Jan 3, 2011, at 2:51 PM, Jason T. Slack-Moehrle wrote:
>
>> If I try and just compile the .mm that is where the errors come from referencing NSObjCRuntime.h and they are like:
>
> Sure looks like it's including Cocoa headers in a non Objective-C file. But that doesn't fit with your description of what you're doing, so I don't know.
>
> You say the class is empty, do you include any headers?
>
> --
> Scott Ribe
> email@hidden
> http://www.elevated-dev.com/
> (303) 722-0567 voice
>
>
>
>
> _______________________________________________
>
> 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

_______________________________________________

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: [Solved] Re: When adding Cocoa classes I get a lot of compile errors automatically
      • From: Scott Ribe <email@hidden>
References: 
 >When adding Cocoa classes I get a lot of compile errors automatically (From: "Jason T. Slack-Moehrle" <email@hidden>)
 >Re: When adding Cocoa classes I get a lot of compile errors automatically (From: Scott Ribe <email@hidden>)
 >Re: When adding Cocoa classes I get a lot of compile errors automatically (From: "Jason T. Slack-Moehrle" <email@hidden>)
 >Re: When adding Cocoa classes I get a lot of compile errors automatically (From: Scott Ribe <email@hidden>)

  • Prev by Date: Context in GCD source cancel handler?
  • Next by Date: Re: Context in GCD source cancel handler?
  • Previous by thread: Re: When adding Cocoa classes I get a lot of compile errors automatically
  • Next by thread: Re: [Solved] Re: When adding Cocoa classes I get a lot of compile errors automatically
  • Index(es):
    • Date
    • Thread