undefined reference to `__libc_start_main'
Hello,
I am getting the following message on my IA64 system:
/usr/lib/gcc-lib/ia64-cygnus-linux/2.9-ia64-000216-final/../../../crt1.o:
In function `_start':
/usr/lib/gcc-lib/ia64-cygnus-linux/2.9-ia64-000216-final/../../../crt1.o(.text+0x62):
undefined reference to `__libc_start_main'
If I compile a simple program, the error is not there. However, if I link with a -L, -l, the error appears:
stpeter <60> cat simple.f
PROGRAM MAINAL
write(6,*) ' Hello world'
endstpeter <61> /usr/bin/sgif90 -o simple simple.f
stpeter <62> simple
Hello world
stpeter <63> /usr/bin/sgif90 -o simple simple.f -L/home/jjg/nast2001t2/obj -lnast /usr/lib/gcc-lib/ia64-cygnus-linux/2.9-ia64-000216-final/../../../crt1.o:
In function `_start':
/usr/lib/gcc-lib/ia64-cygnus-linux/2.9-ia64-000216-final/../../../crt1.o(.text+0x62):
undefined reference to `__libc_start_main'
collect2: ld returned 1 exit status
Does anyone know how I can get around this error?
My system is:
stpeter <64> sgif90 -v
SGIcc Compilers: Version 0.01.0-10
stpeter <65> uname -a
Linux stpeter 2.4.0test8-000913-44smp #1 SMP Tue Oct 3 23:29:59 PDT 2000 ia64 unknown
I am not a subscriber (yet) to this group, so please send comments to me directly.
Thanks,
Joe Griffin