1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Apple Compiling C on Snow Leopard

Discussion in 'Software' started by ozstrike, 24 Oct 2009.

  1. ozstrike

    ozstrike yip yip yip yip

    Joined:
    19 Sep 2004
    Posts:
    2,946
    Likes Received:
    11
    I must be being retarded here, so bear with me. I've not really done much like this before.

    Starting my computer science course, so I've started writing basic C programs. Normally we're on the lab computers which run linux, so I just save my code, open a terminal and compile using gcc.

    I thought I'd be able to do this on OSX (after installing Xcode) but I can't seem to be able to. GCC seems to be installed (I can find the binary) but I can't run it from the terminal. I could just use Xcode itself, but it's a bit too much for what I"m doing at the minute.

    Any ideas on how to do it from the terminal?
     

Share This Page