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]

Re: linking in g77


Edward Lartey wrote:

> 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

There is no PROGRAM statement in your kiargc.F file.

-- 
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
GNU Fortran 95: http://g95.sourceforge.net/ (under construction)

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