Re: GCC compiler suites compatible with Xcode
Re: GCC compiler suites compatible with Xcode
- Subject: Re: GCC compiler suites compatible with Xcode
- From: Fritz Anderson <email@hidden>
- Date: Fri, 12 Sep 2008 10:23:21 -0500
On 12 Sep 2008, at 9:50 AM, Lee, Frederick wrote:
I tend to load the latest versions of software onto my Mac via
MacPorts. One being the GCC compiler (4.2+).
...
So I had previously installed a more-recent gcc (4.2); but haven’t
linked it to Xcode.
So my question is: Is there a more-recent version of gcc (beyond
4.0) that is suitable for Xcode?
… it’s probably not necessary to have it, I suppose.
Meanwhile I have the gcc 4.2 loaded some where; and I assume I
should remove it.
Any thoughts?
It is an honor and a compliment that you should think to direct this
to me.
Caveat that I'm not really familiar with MacPorts.
Xcode 3.1 includes gcc 4.2 for optional use. Look for "C/C++ Compiler
Version" in your project/target build settings. I'm not _sure_, but I
think that for Xcode's purposes, Xcode will find its own gcc-4.2 (in
the /usr tree) even if there is another gcc-4.2 in the /opt tree.
That leaves you with the command line, where your PATH may prefer
commands in /opt/local. A quick fix might be to remove /opt/local
paths from the PATH environment variable, but then you'll lose access
to all the installed ports.
I see the port command has an "uninstall" option, which is (briefly)
documented at <http://guide.MacPorts.org/#using.port.uninstall>. If
the MacPorts package is "gcc", the command seems to be "port uninstall
gcc". I don't know the specifics, so you may have to fish around a bit.
"You may have to fish around a bit" is the operative phrase here.
— F
--
Fritz Anderson -- Xcode 3 Unleashed: Now Available -- http://x3u.manoverboard.org/
_______________________________________________
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