On Wed, May 12, 2004 at 07:42:47PM +0000, bbaa aaa wrote: > We have Redhar As 2.1 update3. I tried to use "gcc" to compile a simple C > program and have error. Does anyone know why? > > Thanks. > > %gcc shell.c > /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o: In function > `_start': > /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o(.text+0x18): > undefined reference to `main' > collect2: ld returned 1 exit status Because there's no function named main() in your program? -- ---- Fred Smith -- fredex@xxxxxxxxxxxxxxxxxxxxxx ----------------------------- The Lord detests the way of the wicked but he loves those who pursue righteousness. ----------------------------- Proverbs 15:9 (niv) -----------------------------
Attachment:
pgp00860.pgp
Description: PGP signature
-- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list