C Programming in Terminal???

Joined
Nov 16, 2007
Messages
14
Reaction score
0
Points
1
hey guys

I'm in a C Programming Class, and right now I'm using cygwin which I do not like. How do I use terminal in Mac? What editor do I use so I can just name it as .c (because I know text editor has many extensions)? How do I compile it using the gcc code? Thanks

I just need it to do the basic stuff...
 
Joined
Jun 25, 2005
Messages
3,231
Reaction score
112
Points
63
Location
On the road
Your Mac's Specs
2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
Install the Cocoa developer tools that came with your install disc. You can tell TextEdit to save the files in plain text and without the .txt extension using it's preferences. Then to compile just use the cc or gcc command. You can look that up via the man pages while you are in Terminal.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top