Thread: C Programming in Terminal???
01-25-2008, 12:17 PM #1
C Programming in Terminal???
- Member Since
- Nov 16, 2007
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...
01-26-2008, 03:21 AM #2
- Member Since
- Jun 25, 2005
- On the road
- 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.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By walkingon2001 in forum OS X - Development and DarwinReplies: 3Last Post: 02-21-2013, 10:36 PM
By yoandrew in forum OS X - Operating SystemReplies: 4Last Post: 12-29-2012, 09:20 AM
By copperybean in forum iOS DevelopmentReplies: 1Last Post: 05-29-2012, 05:32 PM
By powertrustfast in forum Schweb's LoungeReplies: 1Last Post: 01-18-2009, 09:37 PM
By Prometheus in forum OS X - Development and DarwinReplies: 1Last Post: 12-11-2004, 09:38 AM