• 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: I need clarification on limitations of integrating C++ with Obj C
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I need clarification on limitations of integrating C++ with Obj C


  • Subject: Re: I need clarification on limitations of integrating C++ with Obj C
  • From: "Shawn Erickson" <email@hidden>
  • Date: Tue, 21 Mar 2006 12:21:23 -0800

On 3/21/06, Rush Manbert <email@hidden> wrote:

> The only thing I have done to make this work, is to tell the project to
> "Compile Sources As" Objective C++. Maybe you need to do this so that it
> will search for standard library headers? (I don't know how this relates
> to your source file types. I don't mess with those.)

Changing "Compile Sources As" really shouldn't be needed (it most
common situations). If a file contains Objective-C make it end in
".m". If a file contains C++ make it end in ".cpp". If a file contains
C++ and Objective-C make it end in ".mm". Also if you have aspects of
".h" files that only should be compiled for C++ or Objective-C, etc.
you can wrap them which the appropriate #ifdefs so they are only seen
by the correct compiler (#ifdef __cplusplus, #ifdef __OBJC__, etc.).
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: I need clarification on limitations of integrating C++ with Obj C
      • From: Rush Manbert <email@hidden>
References: 
 >I need clarification on limitations of integrating C++ with Obj C (From: John Draper <email@hidden>)
 >Re: I need clarification on limitations of integrating C++ with Obj C (From: Rush Manbert <email@hidden>)

  • Prev by Date: Re: I need clarification on limitations of integrating C++ with Obj C
  • Next by Date: Re: I need clarification on limitations of integrating C++ with Obj C
  • Previous by thread: Re: I need clarification on limitations of integrating C++ with Obj C
  • Next by thread: Re: I need clarification on limitations of integrating C++ with Obj C
  • Index(es):
    • Date
    • Thread