linking in g77

Edward Lartey lartey@hepr0.physics.tamu.edu
Sun Jul 30 10:52:00 GMT 2000


I am having problems with linking. As you can see in the error message
below, there is no problem when compiling, there is only when I try to link. I guess g77 is
failing to find some private routines. How do I solve this issue.

[webb@hepr8 play]$ g77 -o kiargc kiargc.F
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/libg2c.a(main.o): In
function `main':/usr/src/bs/BUILD/egcs-1.1.2/obj-i386-linux/i386-redhat-linux/libf2c
/libF77/../../../../libf2c/libF77/main.$undefined reference to `MAIN__'
collect2: ld returned 1 exit status


Thanks

ED



More information about the Gcc-help mailing list