Need C/C++ environment

Discussion in 'Mac Programming' started by gregbenj, Jul 15, 2006.

  1. macrumors member

    gregbenj

    Joined:
    Jun 28, 2006
    #1
    Does OS X tiger come with a C/C++ environment? If yes, how do I access it? If not, where can I download one (preferably free).
    Thanks
     
  2. Moderator emeritus

    Mitthrawnuruodo

    Joined:
    Mar 10, 2004
    Location:
    Bergen, Norway
    #2
    Just install Developer Tools (that came with your Mac and should be on the OS X disk(s)) and you'll be fine... then you can use Xcode (or your favourite text editor and the Terminal) for coding and compiling.
     
  3. thread starter macrumors member

    gregbenj

    Joined:
    Jun 28, 2006
    #3
    So terminal is a C/C++ compiler?
     
  4. Moderator emeritus

    Mitthrawnuruodo

    Joined:
    Mar 10, 2004
    Location:
    Bergen, Norway
    #4
    No, the Terminal.app (which is located in /Applications/Utilities) is your command line access to the Unix subsystem that MAc OS X is based on. And once you've installed Developer Tools you can complile basic C/C++ programs using

    gcc -o yourcode.c yourprogram.app

    and run them with*

    ./yourprogram.app
     
  5. macrumors 6502

    Monkaaay

    Joined:
    Jun 19, 2006
    Location:
    Richmond, VA
    #5
  6. macrumors newbie

    Joined:
    Jul 9, 2006
    #6
    terminal, g++,gcc

    I was there last week...


    1. To locate "Terminal" use spotlight.Enter Terminal.Ensure small window opens. You are now in the shell.
    2. use "man gcc" or "man g++" to check whether the compilers are installed
    3. in case they are not installed use the Apple CD & install the Xcode.
    4. repeat step 2 above to check....

    Happy or ..........(Happy++)

    Have fun...
     

Share This Page