- Joined
- Nov 6, 2009
- Messages
- 3
- Reaction score
- 0
- Points
- 1
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
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