This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Bug: Undefined reference to MAIN__
- To: martin dot kahlert at infineon dot com
- Subject: Re: Bug: Undefined reference to MAIN__
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- Date: Mon, 01 Oct 2001 18:20:52 +0200
- CC: gcc at gcc dot gnu dot org
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <20011001104419.A31910@keksy.muc.infineon.com>
Martin Kahlert wrote:
> This is a new bug (worked on Friday last weak):
> $ cat t.c
> int main()
> $ gcc -c t.c
> $ g77 -o t t.o f.f
> /sw/gcc-3.1/lib/gcc-lib/i686-pc-linux-gnu/3.1/frtbegin.o: In function `main':
> /home/kahlert/LOCAL/OBJ-3.1/i686-pc-linux-gnu/libf2c/libF77/../../../../gcc-3.1/libf2c/libF77/main.c:61:
> undefined reference to `MAIN__'
> collect2: ld returned 1 exit status
Yep - my bad. I forgot to check C main programs with Fortran
subprograms when testing the new shared-libf2c code (there's no such
code in the regression testsuite - and I'm not sure the regression
testing harness supports mixed-language tests).
Unfortunately, it will take some days before I can implement a solution
- I hope that isn't too much of a problem for you.
Kind regards,
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
Join GNU Fortran 95: http://g95.sourceforge.net/ (under construction)