I am very new to Macs, and I'm trying to learn how to compile C and C++
programs in the terminal application. I'm currently using OS X 10.4.8.
From everything I've read, gcc should be included with the system, but
I can't seem to find it. I've tried using it on old programs from
classes to compile them, but it tells me it doesn't recognize either
gcc or cc as commands on the default path. Is there something in
particular I need to do to get these working?
David Phillip Oster - 22 Dec 2006 02:28 GMT
> I am very new to Macs, and I'm trying to learn how to compile C and C++
> programs in the terminal application. I'm currently using OS X 10.4.8.
[quoted text clipped - 3 lines]
> gcc or cc as commands on the default path. Is there something in
> particular I need to do to get these working?
Install the developer tools. Look in /Applications or on your original
disk for the developer tools (Xcode) installer. If you still can't fnd
them, you can download them from http://developer.apple.com after you
register (it is free). The command-line compiler is included with the
integrated developer environment.