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: .../main.c: No such file or directory


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)


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