Re: xcode & c++
Re: xcode & c++
- Subject: Re: xcode & c++
- From: Jens Alfke <email@hidden>
- Date: Sat, 03 Mar 2012 13:25:42 -0800
On Mar 2, 2012, at 5:20 PM, koko wrote: I disagree. If you are doing development for Win and Mac with as much a common code base as possible the compiler setting is the only way to go.
It’s not the way Chromium does it, and IIRC it’s not the way Safari does it. Both of those are very large cross-platform projects that intermix C++ and Objective-C. They use “.mm” suffixes for any Obj-C files that use C++.
Fundamentally, if you have a source file that is Objective-C and needs to use C++ features, then the language dialect you are using is Objective-C++, and the file’s extension should be “.mm” to reflect that.
—Jens |
_______________________________________________
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