Terminal command line?

Discussion in 'iOS Programming' started by shakeman0, Dec 20, 2009.

  1. shakeman0 macrumors 6502a

    shakeman0

    Joined:
    Jul 20, 2009
    #1
    Hello everyone,

    I think I have finally wrapped my mind around the fact that Terminal works as a compiler. I'm trying to learn C and have no idea what command line to put into Terminal to get it to compile the code. Could someone tell me the command line?


    Thanks,
     
  2. Tex-Twil macrumors 68020

    Tex-Twil

    Joined:
    May 28, 2008
    Location:
    Europe
    #3
    Hi,
    just a little precision. It´s not Terminal who works as a compiler. Terminal is just used to execute a compiler which is for example gcc. As said previously, you should read the manual or just google for the different options of gcc. The basic command to compile one source file is

    Code:
    gcc hello.c -o hello
    

    Tex
     

Share This Page