PDA

View Full Version : Need C/C++ environment




gregbenj
Jul 15, 2006, 06:01 PM
Does OS X tiger come with a C/C++ environment? If yes, how do I access it? If not, where can I download one (preferably free).
Thanks



Mitthrawnuruodo
Jul 15, 2006, 06:08 PM
Just install Developer Tools (that came with your Mac and should be on the OS X disk(s)) and you'll be fine... then you can use Xcode (or your favourite text editor and the Terminal) for coding and compiling.

gregbenj
Jul 15, 2006, 06:30 PM
So terminal is a C/C++ compiler?

Mitthrawnuruodo
Jul 15, 2006, 06:43 PM
No, the Terminal.app (which is located in /Applications/Utilities) is your command line access to the Unix subsystem that MAc OS X is based on. And once you've installed Developer Tools you can complile basic C/C++ programs using

gcc -o yourcode.c yourprogram.app

and run them with*

./yourprogram.app

Monkaaay
Jul 16, 2006, 10:42 PM
Xcode will become your friend. :D

http://www.apple.com/macosx/features/xcode/

sunil-delhi
Jul 17, 2006, 11:38 AM
I was there last week...


1. To locate "Terminal" use spotlight.Enter Terminal.Ensure small window opens. You are now in the shell.
2. use "man gcc" or "man g++" to check whether the compilers are installed
3. in case they are not installed use the Apple CD & install the Xcode.
4. repeat step 2 above to check....

Happy or ..........(Happy++)

Have fun...