gcc4.4 in XCode

Discussion in 'Mac Programming' started by er2020, Aug 16, 2010.

  1. er2020 macrumors newbie

    Joined:
    Aug 14, 2010
    #1
    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?
     
  2. er2020 thread starter macrumors newbie

    Joined:
    Aug 14, 2010
    #2
    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.
     
  3. chown33 macrumors 604

    Joined:
    Aug 9, 2009
    #3
    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.
     
  4. er2020 thread starter macrumors newbie

    Joined:
    Aug 14, 2010
    #4
    Answered

    All that is needed is to set up Code Blocks like this:
    Settings > Compiler > Toolchain exec
    and provide the new pathname and exec.
     

Share This Page