This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Porting from AIX 4.3.3 /xlc to gcc /usr/lib/crt1.o error
- From: Andrea 'Fyre Wyzard' Bocci <fwyzard at inwind dot it>
- To: Jeff dot CTR dot Vandenbussche at tc dot faa dot gov (Jeff CTR Vandenbussche),gcc-help at gcc dot gnu dot org,redhat-install-list at redhat dot com
- Date: Fri, 21 Dec 2001 23:37:08 +0100
- Subject: Re: Porting from AIX 4.3.3 /xlc to gcc /usr/lib/crt1.o error
At 10.44 20/12/2001 (GMT -0500), Jeff CTR Vandenbussche wrote:
> I am trying to port a small simple Makefile from AIX 4.3.3 xlc
> compiler to the gcc compiler on either Redhat 6.0(gcc 2.91), 6.2(gcc
> 2.91) or 7.2 (gcc 2.96). When it attempts to compile I get the
> following error:
>
> /usr/lib/crt1.o(.text+0x18): undefined reference to `main'
> collect2: ld returned 1 exit status
>
Sorry for the silly question but - did you put a main() function in your app ?
fwyzard