[vtkusers] Best Mac development environment?
David Gobbi
david.gobbi at gmail.com
Thu Dec 22 13:26:56 EST 2011
On Thu, Dec 22, 2011 at 11:22 AM, Sean McBride <sean at rogue-research.com> wrote:
> On Thu, 22 Dec 2011 13:09:08 -0500, Cory Quammen said:
>
>>> Actually, on the current OS and Xcode, gcc is gone. It's just a sym
>>link to the llvm-gcc.
>>
>>Really? On Mac OS X Lion 10.7.1 and Xcode 4.1, I have:
>>
>>> gcc --version
>>i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc.
>>build 5658) (LLVM build 2335.15.00)
>>
>>> gcc-4.2 --version
>>i686-apple-darwin11-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
>
> As I said, on the current OS and Xcode. Current Xcode is 4.2.1. IIRC, gcc was removed in 4.2.
>
> $ gcc --version
> i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)
>
> $ which gcc
> /usr/bin/gcc
>
> $ ls -l /usr/bin/gcc
> lrwxr-xr-x 1 root wheel 12 14 Oct 16:40 /usr/bin/gcc -> llvm-gcc-4.2
In reference to Steve's question, VTK is regularly tested with several
OS X compilers and it shouldn't really matter which one you use, as
long as you are using VTK 5.8 or later. All of gcc-4.0, gcc-4.2,
llvm-gcc-4.2, and clang will provide similar performance, as far as I
understand it. Just use the default compiler that comes with
whichever version of XCode you are using.
- David
More information about the vtkusers
mailing list