C ++ 11 with Xcode on Mac OS X Snow Leopard

I have a project that is sometimes developed in Windows / Visual Studio 2010 and uses some features of C ++ 11, and I need to be able to develop / create on Mac OS X. When I tried to build a project using Xcode, I got a lot of errors around new C ++ 11 features and checked the gcc version to find it pretty old (4.2). Apple seems to be trying to get developers to pay for an unnecessary upgrade to Lion by refusing to allow Xcode 4+ to be downloaded to any other version of Mac OS, so I stayed with Xcode 3.x.

How can I continue to use C ++ 11 on Snow Leopard? Is there a way to do this and keep Xcode as an IDE?

+5
source share
2 answers

Feb.25 2012 Update: Now you have many opportunities to work using the latest clang. Perhaps you can target 10.6 if you only use language features. If you need library functions, you will need 10.7.


given the current (sept.24.2011) state of the Xcode toolkit, it’s easiest (IMO) to choose another ideal or os if you need C ++ 11 support.

fork gcc xcode . clang ++ 11 ( ++ - , ). xcode ++ 11, osx.

gcc ide .

xcode 3 ( ), (, gcc). xc4 (afaik). , -, Xc4; . idljarn .

Mac linux windows ( ).

- Intel, xcode ++ 11 - xcode , , , xcode ++ 11, .

, , . xcode - , , ; . clang gcc. ... osx ++ 11, ( ) . xcode ++ 11, , clang , .

+6

, . LLVM XCode 3 (). ++ 11. , :

http://clang.llvm.org/cxx_status.html

GCC :

http://gcc.gnu.org/projects/cxx0x.html

, Clang , , . , , concurrency, ++ 11 - . , . , Xcode ( ;))!

+3

All Articles