Skip to content
Prev 8989 / 15075 Next

GCC on Lion and above

Hi Tim

I encountered this recently.  If you do
  gcc --version
you'll notice that you get the llvm, whereas
  gcc-4.2 --version
gives you the "right"s standard GCC.  So essentially, when you
compile, you need to make sure you use
  gcc-4.2
and
  gfortran-4.2
both of which are in /usr/bin.  Note that gcc-4.2 and gcc are two
different beasts.  All of this can usually be done by doing something
like
  CC=/usr/bin/gcc-4.2 ./configure

Kasper

Output:
gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc.
build 5658) (LLVM build 2336.9.00)

gcc-4.2 --version
i686-apple-darwin11-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)



On Tue, Apr 24, 2012 at 3:06 PM, Timothy Bates
<timothy.c.bates at gmail.com> wrote:
Message-ID: <CAC2h7uv6U1MmWdG4vfPneuJg+g=MDrdH30VphdmoQFXraKF_5A@mail.gmail.com>
In-Reply-To: <E86F3A1E-6927-4440-A7AE-838B9FF13DD4@gmail.com>