Re: I need clarification on limitations of integrating C++ with Obj C
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