Re: Compiling Objc++
Re: Compiling Objc++
- Subject: Re: Compiling Objc++
- From: Mark Dawson <email@hidden>
- Date: Mon, 10 Jan 2005 21:35:03 -0800
So, you can't mix C++ and Obj-C? You CAN mix C++ and Obj-C++ (by
naming a file .mm), but you can't just start typing C++ in a previously
Obj-C only file, right?
Is it as simple as just renaming the .m file to .mm to tell the
compiler that some of the compiling will be C++?
Thanks!
Mark
On 11/01/2005, at 2:17 PM, Mark Dawson wrote:
How do I tell XCode (1.5) to compile this header file as obj-c++ (or
just plain C++)?
This header file must only ever be #included directly or indirectly by
an obj-c++ source file (typically a .mm file).
If it has been inadvertently sucked in to the compilation of a plain
obj-c source file (plain .m file) then the compiler will barf.
Steve Coy
_______________________________________________
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