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

er2020

macrumors newbie
Original poster
Aug 14, 2010
18
0
I want to be able the use the compiler (installed with fink) /sw/bin/gcc-4 within XCode. Is it feasible? How? Is it by setting up XCode > Build > Compiler version > Other, or Target info > Rules?
 
I want to be able the use the compiler (installed with fink) /sw/bin/gcc-4 within XCode. Is it feasible? How? Is it by setting up XCode > Build > Compiler version > Other, or Target info > Rules?

Let me ask again : Is the command line my only option for using gcc-4, or is someone aware of -any- IDE that can be set up to use it, and how?

Thanks.
 
Since /usr/bin/gcc (or other similar forms residing in /usr/bin) is simply a symlink, I don't see why you can't change it to be a symlink that points to anything you want. You will need sudo for this.

Yes, this is a hack, but it's a simple and easily reversible hack.
 
Answered

Let me ask again : Is the command line my only option for using gcc-4, or is someone aware of -any- IDE that can be set up to use it, and how?

Thanks.

All that is needed is to set up Code Blocks like this:
Settings > Compiler > Toolchain exec
and provide the new pathname and exec.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.