i'm trying to get into programming as i love os x and have a lot of great ideas for apps. i've been working all day on learning the very beginning and am trying to run the "Hello World" program but can't seem to do it.
here's what i've done so far:
went to this site : http://www.learn-programming.za.net/programming_c_learn01.html
followed the directions exactly, typed the code into aquamacs emacs which i guess is just a nicer looking version of emacs? that's my understanding at least. then i "save buffer as" hello.c like it tells you to and then type the "$cc hello.c -ohello" command into Terminal and it says command not found.
these are my conditions:
i have hello.c saved on my desktop
i have installed xcode from the adc site. i also instealled gcc from the custom install options and when i type cc into terminal to make sure i have gcc i get: powerpc-apple-darwin8-gcc-4.0.1: no input files
please help! i've been working literally from 10 am to 5 pm (i'm pathetically slow) and i'm getting very frustrated.
thanks for any info you can give me!
p.s. i'm also looking into buying "Cocoa Programming for Mac OS X" and "The C Programming Language" by kernighan and ritchie but before i spend 50 dollars per book (poor college student) i want to see how far i can get with the plethora of info on the internet.
thanks in advance
brent
here's what i've done so far:
went to this site : http://www.learn-programming.za.net/programming_c_learn01.html
followed the directions exactly, typed the code into aquamacs emacs which i guess is just a nicer looking version of emacs? that's my understanding at least. then i "save buffer as" hello.c like it tells you to and then type the "$cc hello.c -ohello" command into Terminal and it says command not found.
these are my conditions:
i have hello.c saved on my desktop
i have installed xcode from the adc site. i also instealled gcc from the custom install options and when i type cc into terminal to make sure i have gcc i get: powerpc-apple-darwin8-gcc-4.0.1: no input files
please help! i've been working literally from 10 am to 5 pm (i'm pathetically slow) and i'm getting very frustrated.
thanks for any info you can give me!
p.s. i'm also looking into buying "Cocoa Programming for Mac OS X" and "The C Programming Language" by kernighan and ritchie but before i spend 50 dollars per book (poor college student) i want to see how far i can get with the plethora of info on the internet.
thanks in advance
brent