Your compiler program is gcc. (/usr/bin/gcc).
http://gcc.gnu.org/
in terminal type (at the prompt):
gcc --version
(press return)
should output the following:
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5646) (dot 1)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
If it does, your compiler is alive and kicking and ready for action, if not, reinstall developer tools
package from your SL install DVD.
The usual ritual for compiling is to drag the directory containing the source code to your desktop,
then, in terminal, change terminal path to the source directory using the change directory command
"cd".
example; say I have a program called cdrtools 2.0.1 and the source is in a folder I dragged to my
desktop called cdrtools_2.0.1:
In terminal i would type:
cd /Users/kj/Desktop/cdrtools_2.0.1
Follow the instructions that come with the package. Typically they will tell you to:
./configure
( Many packages have a configure script which will query your system and configure themselves
appropriately. Not supported by all software).
make
( Compile the software. Some require a file name to build such as make foo. make reads a file
normally called Makefile for what commands to run).
make install
( Install the software. Typically packages will put themselves in /usr/local. Run as root).
That is the usual ritual, but you must follow the instructions that come with the software, as they
may vary.
Read documentation!
Look for files called: INSTALL, README, SETUP, or similar.
For more information see the following:
http://luv.asn.au/overheads/compile.html
Now beware that some source code written before Snow Leopard was released may not compile
properly on SL, because of SL's 64Bit gcc extensions. If the source has not been updated to run
under the Snow Leopard compiler, then the compilation may fail.
IF the program fails to compile, or fails to run after compiling, then most likely, then the source
may need updating.
good luck, and don't pull all your hair out at once. Save some for later. 🙂
The guys in the 'NIX forum can help you with all the grizzly details as you go on your quest.
http://discussions.apple.com/forum.jspa?forumID=735
Good luck,

Kj ♘