I have this problem whenever I try to compile a very trivial program:
[mmfernan@algopc151 HelloWorld]$ cc -G HelloWorld.c -o libHelloWorld.so
cc: unrecognized option '-G'
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../crt1.o(.text+0x18): In
function `_start':
: undefined reference to `main'
collect2: ld returned 1 exit status
[mmfernan@algopc151 HelloWorld]$ cc -g HelloWorld.c -o libHelloWorld.so
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../crt1.o(.text+0x18): In
function `_start':
: undefined reference to `main'
collect2: ld returned 1 exit status
Do you have an idea?
thanks
Marcelo