This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: .../main.c: No such file or directory
- To: Wanyu Li <wanyu_li at engr dot colostate dot edu>
- Subject: Re: .../main.c: No such file or directory
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- Date: Wed, 03 Oct 2001 08:05:45 +0200
- CC: Matt Hiller <hiller at redhat dot com>, Debbie Gilbert <dgilbert at nateng dot com>, gcc-help at gcc dot gnu dot org
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <Pine.GSO.3.96.1011002165910.1926A-100000@daffy>
Wanyu Li wrote:
> I recently moved to use g77 on Sun station. I compiled and linked a
> fortran program with -g switch. When I get in gdb to debug the program,
> I find that the symbols from the program are loaded in, but I can see the
> source code by command 'list', I get a message of
> '../../../../libf2c/libF77/main.c: No such file or directory.'
This means that there is no main program in your Fortran sources, i.e.,
something that starts with:
PROGRAM BLAH
...
END
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)