This is the mail archive of the gcc@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: Bug: Undefined reference to MAIN__


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)


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