• 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: Trying to compile an ObjectiveC and C++ program in XCode 3.1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying to compile an ObjectiveC and C++ program in XCode 3.1


  • Subject: Re: Trying to compile an ObjectiveC and C++ program in XCode 3.1
  • From: "Shawn Erickson" <email@hidden>
  • Date: Thu, 11 Sep 2008 13:36:45 -0700

On Thu, Sep 11, 2008 at 10:28 AM, Ed Immenschuh <email@hidden> wrote:
>
> Hello,
>
> I'm relatively new programming ObjectiveC and Cocoa, and I'm trying to add some C++ code to my existing ObjectiveC/Cocoa code using Xcode 3.1. I have my C++ files in a separate .mm files (as the documentation says to), and my C++ headers are in a xxx.h file. When building the code, I keep  getting my C++ 'class' and everything associated with it as undefines. Is there some compiler flag I have to set that is not being set automatically, or is there something else I am not doing correctly?

Who is including the "xxx.h" header? If that header has C++ keywords
in it (aka class, etc.) then all files that include that header have
to be compiled using the C++ compiler (.mm or .cpp files).

If you don't want that to happen then you need to rework what is
exposed in your header(s).

-Shawn
_______________________________________________

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: 
 >Trying to compile an ObjectiveC and C++ program in XCode 3.1 (From: Ed Immenschuh <email@hidden>)

  • Prev by Date: Re: Do I Need Multiple NSArrayControllers For This?
  • Next by Date: RE: How do I identify Myself within AddressBook Progammatically?
  • Previous by thread: Re: Trying to compile an ObjectiveC and C++ program in XCode 3.1
  • Next by thread: Re: Trying to compile an ObjectiveC and C++ program in XCode 3.1
  • Index(es):
    • Date
    • Thread