Re: C++ compiler isn't being used
Re: C++ compiler isn't being used
- Subject: Re: C++ compiler isn't being used
- From: Sean McBride <email@hidden>
- Date: Wed, 24 Aug 2011 17:42:18 -0400
- Organization: Rogue Research Inc.
On Wed, 24 Aug 2011 16:08:55 -0500, Steve Mills said:
>> For some reason, your "Compile Source As" setting didn't quite stick,
>and that's probably the root of the problem. Don't know why it wouldn't
>work, though...
>>
>> Note: struct is required in C, but not in C++ (a struct is effectively
>a class with everything public by default). When "struct" is required,
>you're not using a C++ compiler.
>
>Yes, I know, which is why I'm asking about this. Looks like an Xcode or
>LLVM bug to me.
Older versions of llvm/clang did not support C++, and Xcode fell back to gcc for C++ regardless of that setting. Perhaps that's the case for you too?
I'd also discourage you from switching to C++ for this alone, it's much slower and less supported. ex: refactoring, the static analyzer, etc. don't support C++.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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