This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]