This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: linking in g77
- To: Edward Lartey <lartey at hepr0 dot physics dot tamu dot edu>
- Subject: Re: linking in g77
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- Date: Mon, 31 Jul 2000 00:28:30 +0200
- CC: gcc-help at gcc dot gnu dot org
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <Pine.LNX.4.10.10007301254320.27542-100000@hepr0.physics.tamu.edu>
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)