Link Edit Error, Help!!!!!

Hi,

After I installed gcc on my machine and issued a command to compile a program, I did

gcc -c 'prog'.c

The object file was created, then I did

gcc -o 'prog' 'prog'.o

Then I got this error message I have been reading man pages and searching the internet but have not been able to find an answer,

"ld: fatal: Symbol referencing errors. No output written to 'prog'
collect2: ld returned 1 exit status "

Am I missing anything in my installation ? please help

thanks,

Rachael:(

ok, the entire error message is

Undefined.........................first referenced
symbol..............................in file
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0.1/crt1.0
ld: fatal: Symbol referencing errors. No output written to 'prog'
collect2: ld returned 1 exit status "

What is this crt1.0? Anybody has any ideas? unable to read it cuz it is in binary

Rachael