Can I upgrade Xcode to support the newer version of GCC to learn C ++ 0x?

I would like to learn C ++ 0x, which has matured to the level that I am satisfied with.

Xcode on Snow Leopard 10.6 is currently in GCC 4.2.1, and new features I'd like to try, such as std :: shared_ptr, lambdas, auto, constant null pointer, Unicode string literals and other bits and fragments, require at least 4.3 (I think).

Ideally, I would use Xcode, but I'm not even sure that you can manually update the compiler for Xcode. Is it possible?

Otherwise, what is the best way to install another version of GCC that does not interfere with the rest of the system?

Hello,

Shane

+5
gcc c ++ 11 macos
Jun 01 2018-10-06T00:
source share
2 answers

I have finished downloading the latest version of Intel Compiler for Mac, and it does what I need. This is a good way to test the water without running into your system.

http://software.intel.com/en-us/intel-compilers/

+3
Jun 09 '10 at 7:29
source share

You can look at LLVM and Clang and see if they can do what you need if you want to use Xcode. Apple has canceled the move from GCC to LLVM / Clang for licensing reasons.

0
Jun 01 '10 at 2:00
source share



All Articles