| OS X - Operating System General OS operation information and support |
| Post Reply | New Thread | Subscribe |
|
|
Thread Tools |
![]() Member Since: Nov 06, 2009
Posts: 3
![]() |
I'm working my way through a book on C programming fro the Mac, and right now, I'm trying to compile a simple program. The command in the book is
cc -o slasher main.c but the terminal says -bash: cc: command not found I also tried gcc, with the same result. What's the correct command to compile a program from the CLI? The book hasn't yet been updated for OS 10.6 |
| QUOTE Thanks | |
![]() Member Since: Dec 13, 2007
Location: United States of America
Posts: 256
![]() Mac Specs: 2.1GHz MacBook with 4GB RAM, Mac OS X 10.6, iLife and iWork ‘09
|
You need to install the developer tools. You can do so either from your OS X Install Disc or from Apple's Web site.
|
| QUOTE Thanks | |
| Post Reply | New Thread | Subscribe |
| Thread Tools | |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|
|||||||
Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| Snow leopard disaster - apple is replacing my macbook pro.. | EntropyX | Switcher Hangout | 15 | 10-05-2010 04:04 AM |
| Can i reinstall Leopard from Snow Leopard | deanobeano | OS X - Operating System | 10 | 06-08-2010 09:57 AM |
| Snow Leopard and Time Machine | billwill | OS X - Apps and Games | 8 | 11-10-2009 08:46 AM |
| How Do I Uninstall Snow Leopard? | c12susan | OS X - Operating System | 3 | 09-23-2009 10:44 PM |
| Snow Leopard hangs on grey screen when usb hard drive attached | gilc | OS X - Operating System | 2 | 09-19-2009 06:44 PM |
All times are GMT -4. The time now is 10:55 PM.
Powered by vBulletin