Re: Activating gcc 4.2 [was XCode 3.1 and 2.5]
Re: Activating gcc 4.2 [was XCode 3.1 and 2.5]
- Subject: Re: Activating gcc 4.2 [was XCode 3.1 and 2.5]
- From: Robert Purves <email@hidden>
- Date: Mon, 18 Aug 2008 19:43:50 +1200
Dieter Oberkofler wrote:
I'm using XCode 2.5 and build my project with gcc 4.0.1. I have now
also installed XCode 3.1 and would ike to some testing when using
the
new gcc 4.0.2 but am unable to find the gcc_select utility thats
needs
to change the gcc version. How would this be done?
There is no gcc 4.0.2; I assume that you mean gcc 4.2.
The gcc_select tool has been discontinued.
In Xcode 3.1, choose GCC 4.2 from the pop-up at:
your_project Info > Build > Compiler Version > C/C++ Compiler Version
Or, from the command line, use gcc-4.2 to invoke the compiler,
instead of gcc or cc.
Be aware of the limitation described in Xcode 3.1 Release Notes:
"Note that neither gcc-4.2 nor llvm-gcc-4.2 will compile code
against the 10.4u or earlier SDK, or deploy for Mac OS X 10.4 or
earlier."
1) Would you know why gcc_select has been discontinued? Are there
alternatives when using the command line?
IIRC, gcc_select worked by pointing the symbolic link /usr/bin/gcc at
the chosen gcc binary. Perhaps Apple noticed that this was a clunky
and confusing thing to do.
2) Does this mean, that only XCode 2.5 should be used when deploying
against 10.3 and later?
Why would you think this? Xcode 3.1 is fully able to build against the
10.3.9 SDK. Set the compiler version pop-up to GCC System Version or
equivalently to GCC 4.0.
Robert P.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden