Best way to update g++?

Discussion in 'Mac Programming' started by titaniumdecoy, Aug 6, 2008.

  1. titaniumdecoy macrumors member

    Joined:
    Oct 13, 2005
    #1
    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.
     
  2. alphaod macrumors Core

    alphaod

    Joined:
    Feb 9, 2008
    Location:
    NYC
    #2
    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.
     
  3. Cromulent macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #3
    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.
     
  4. Catfish_Man macrumors 68030

    Catfish_Man

    Joined:
    Sep 13, 2001
    Location:
    Portland, OR
    #4
    Apple's GCC is not equivalent to regular GCC, btw.
     
  5. alphaod macrumors Core

    alphaod

    Joined:
    Feb 9, 2008
    Location:
    NYC
    #5
    It's close enough for most things (well for my things at least).
     

Share This Page