GCC compile err ??
fredex
fredex at fcshome.stoneham.ma.us
Thu May 13 00:01:46 UTC 2004
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 at fcshome.stoneham.ma.us -----------------------------
The Lord detests the way of the wicked
but he loves those who pursue righteousness.
----------------------------- Proverbs 15:9 (niv) -----------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/redhat-list/attachments/20040512/142201e3/attachment.sig>
More information about the redhat-list
mailing list