• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: XCode 2.5 and 3.1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XCode 2.5 and 3.1


  • Subject: Re: XCode 2.5 and 3.1
  • From: Peter O'Gorman <email@hidden>
  • Date: Wed, 17 Dec 2008 11:57:56 -0600

Dieter Oberkofler wrote:
> I'm only working on the command line. cc is a link to the gcc-40 in
> /usr/bin as well as gcc. I would not know what environment variables I
> would need to set.
> gcc_select in the past did change all the needed links automatically and
> I can no longer find a way to do so.
> Is there?

Most tools respect the CC and CXX environment variables. Set
CC=/usr/bin/gcc-4.2 CXX=/usr/bin/g++-4.2.

Alternatively, create a directory, put symlinks to the compilers you
want in it, and put that directory at the head of your path.

Peter


> On 17.12.2008, at 18:28, Jason Stephenson wrote:
>
>> Dieter Oberkofler wrote:
>>> I understand but xcode-select does not allow to set the gcc version
>>> to be used. If I call gcc I still get gcc 4.0 and not the 4.2 that
>>> comes with XCode 3.1.
>>
>> You can set the Compiler Version in your Xcode projects' build
>> settings in Xcode 3.1.
>>
>> Or you can set the CC and CXX variables in your environment to the
>> appropriate executable for comman-line/Makefile driven builds.
>>
>>
>>> On 17.12.2008, at 17:48, Jean-Daniel Dupas wrote:
>>>>
>>>> Le 17 déc. 08 à 17:20, Dieter Oberkofler a écrit :
>>>>
>>>>> I have XCode 2.5 and 3.1 installed but until now I was only using
>>>>> 2.5 when building from the command line.
>>>>> I would now like to switch but am unable to find the gcc_select
>>>>> command. Where has it gone and how would I select a specific gcc
>>>>> version.
>>>>> Thank you,
>>>>> Dieter


--
Peter O'Gorman
http://pogma.com
 _______________________________________________
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

References: 
 >XCode 2.5 and 3.1 (From: Dieter Oberkofler <email@hidden>)
 >Re: XCode 2.5 and 3.1 (From: Jean-Daniel Dupas <email@hidden>)
 >Re: XCode 2.5 and 3.1 (From: Dieter Oberkofler <email@hidden>)
 >Re: XCode 2.5 and 3.1 (From: Dieter Oberkofler <email@hidden>)

  • Prev by Date: Re: XCode 2.5 and 3.1
  • Next by Date: Age Old Question: How Do You Set __MyCompanyName__
  • Previous by thread: Re: XCode 2.5 and 3.1
  • Next by thread: Age Old Question: How Do You Set __MyCompanyName__
  • Index(es):
    • Date
    • Thread