gcc in xcode

Discussion in 'Mac Programming' started by avilolo0, Aug 17, 2016.

  1. avilolo0 macrumors newbie

    Joined:
    Nov 10, 2015
    #1
    hi.
    my os version is 10.11.2 el capitan
    and x code is 7.3.1
    I'm needed a gcc compiler for my Xcode for some c programming, so i followed this tutorial(ill paste the link)
    and its look like the process success,but i can't choose the gcc compiler inside the Xcode build settings,the only one i have is the apple llvm 7.1.
    maybe the gcc is inside this compiler and i didn't understand it but how can i know this?
    this is the tutorial
    and this is a screenshot that explain my problem https://postimg.org/image/y5o4yxtun/ .
    thank you.
     
  2. mfram macrumors 65816

    Joined:
    Jan 23, 2010
    Location:
    San Diego, CA USA
    #2
    Why would you want to install inferior compiler when one is already there?
     
  3. avilolo0 thread starter macrumors newbie

    Joined:
    Nov 10, 2015
    #3
    my university check our works with this compiler
     
  4. robvas macrumors 68020

    Joined:
    Mar 29, 2009
    Location:
    USA
    #4
    Why can't you just use the command line tools? You shouldn't specifically need a certain compiler.
     
  5. avilolo0 thread starter macrumors newbie

    Joined:
    Nov 10, 2015
    #5
    i new to all the programming scene
    do you mean when you open project to make this selection?
    and there is no specific compiler that we need to work with,but they check it with gcc
    some of my friends have mac and programming on windows,there is difference that could happen?
    for example that i build program in Xcode and when they check it its could be different or some warnings that apple compiler does not show ?
    maybe there is a way to "stiff" the apple compiler?
    thats the only reason i need the gcc
    Screen Shot 2016-08-18 at 20.52.57.png
     
  6. robvas macrumors 68020

    Joined:
    Mar 29, 2009
    Location:
    USA
    #6
    If you are writing straight C code it doesn't matter what compiler you are using
     
  7. tag macrumors 6502a

    tag

    Joined:
    Apr 29, 2005
    Location:
    PA, US
    #7
    The reason you can't choose gcc in XCode is because gcc isn't actually installed anymore with current versions of XCode, even though it "apparently" gets installed with the command line tools. The installed gcc is basically now just a wrapper for clang/llvm. You could technically install a pure version of gcc from an external source like MacPorts/Homebrew or from source, but there is no way to install the original gcc direct from Apple any longer. Apple has moved on from gcc.
     
  8. kiwipeso1 Suspended

    kiwipeso1

    Joined:
    Sep 17, 2001
    Location:
    Wellington, New Zealand
    #8
    You don't need a specific compiler, your university is being pedantic about requiring open source compilers.
     
  9. avilolo0 thread starter macrumors newbie

    Joined:
    Nov 10, 2015
    #9
    so from the most of the replies here I'm understanding,there is no problem to coding in the Xcode
    thank you!!!
     

Share This Page