Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

titaniumdecoy

macrumors member
Original poster
Oct 13, 2005
86
0
What is the best way to update g++ on OS X 10.5? I currently have 4.0.1 which is built in to the system. I would rather not compile the source because that usually ends up creating a separate installation. Or is that (built-in) version necessary for the developer tools? Thanks.
 

alphaod

macrumors Core
Feb 9, 2008
22,183
1,245
NYC
The built in one is good enough; otherwise you have to compile from source.

Then you use gcc_select to change the compiler to the one you compiled from source.
 

Cromulent

macrumors 604
Oct 2, 2006
6,816
1,101
The Land of Hope and Glory
What is the best way to update g++ on OS X 10.5? I currently have 4.0.1 which is built in to the system. I would rather not compile the source because that usually ends up creating a separate installation. Or is that (built-in) version necessary for the developer tools? Thanks.

Xcode 3.1 comes with gcc 4.2.something, you can use it by setting it as the compiler to use in the build settings of your project.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.