• 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: How to set the GCC System Version? GCC_VERSION - gcc_select?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to set the GCC System Version? GCC_VERSION - gcc_select?


  • Subject: Re: How to set the GCC System Version? GCC_VERSION - gcc_select?
  • From: Paul Russell <email@hidden>
  • Date: Thu, 3 Sep 2009 22:20:27 +0100

/usr/bin/gcc is just a symbolic link, so it shouldn't be rocket surgery to change it to point at /usr/bin/gcc-4.0 instead of /usr/bin/ gcc-4.2, e.g.

% sudo ln -fs /usr/bin/gcc-4.0 /usr/bin/gcc

and similarly for g++ of course.

Paul

On 3 Sep 2009, at 22:03, Dave Thorup wrote:

Now that Snow Leopard has switched the system default GCC version to 4.2 I'm wondering if there's any way to switch it back, globally, to 4.0? In previous Mac OS X versions there was a gcc_select script that would do the trick but I think that's been removed since Leopard (10.5). So is there any replacement for it? Is there any way to easily change the default GCC version?

The issue I'm having is that we use Qt (http://qt.nokia.com/) for application development and so our Xcode projects are generated via qmake. Whenever we add/remove a file to our project we do it to the Qt project file and then rebuild the Xcode project. We can't just set the GCC version once and forget about it because our Xcode projects are regenerated fairly often. The problem is that there's no way that I know of using qmake to set the GCC_VERSION for the generated Xcode project. So I have to set it manually to 4.0 every time I regenerate the Xcode project (this gets annoying very quickly).

So my options are to either figure out how to globally set the system GCC version to 4.0 or figure out how to hack qmake to set the GCC_VERSION to 4.0 whenever it generates an Xcode project. Are there any other Qt developers out there that have run into this problem? Does anyone have a good solution?

Oh, and really shouldn't Xcode automatically switch to GCC 4.0 if the MACOSX_DEPLOYMENT_TARGET is set to 10.4 or earlier (We have it set to 10.3)?

Thanks!
--
Dave Thorup
Software Engineer
http://bibblelabs.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: 
 >How to set the GCC System Version? GCC_VERSION - gcc_select? (From: Dave Thorup <email@hidden>)

  • Prev by Date: Re: Object with +0 retain counts returned to caller where a +1 (owning) retain count is expected
  • Next by Date: libxml2 in Xcode 3.2
  • Previous by thread: How to set the GCC System Version? GCC_VERSION - gcc_select?
  • Next by thread: Re: How to set the GCC System Version? GCC_VERSION - gcc_select?
  • Index(es):
    • Date
    • Thread