Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am looking forward to migrate my c++ code to C++11, which might requires at least g++ 4.6. So what is the GCC installed on Mountain Lion?

share|improve this question
Although a good guess is gcc 4.2 as in Snow Leopard + - Apple now use clang not gcc – Mark Jun 21 '12 at 19:19
up vote 3 down vote accepted

Mountain Lion doesn't ship with any GCC, but you can install GCC 4.7 . I have done this on my machine.

share|improve this answer

Apple doesn't ship compilers with their App Store OS versions (Lion and now Mountain Lion) so the answer is none.

It does provide an llvm-gcc binary that serves as gcc as part of Xcode and the developer tools. This is a free download and you can use it to bootstrap to whatever version of gcc you please if the shipping version isn't to your liking.

Here is gcc version that ships with Xcode v4.3.3

Air:~ mike$ which gcc
Air:~ mike$ gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.