ancient include statements

Tobias.Schlueter@Physik.Uni-Muenchen.DE Tobias.Schlueter@Physik.Uni-Muenchen.DE
Wed Aug 17 15:20:00 GMT 2005


Quoting Jack Howarth <howarth@bromo.msbb.uc.edu>:

>    I noticed one feature of g77 that doesn't seem to exist in
> gfortran. Some ancient fortran code like whatcheck...
>
> http://swift.cmbi.ru.nl/gv/whatcheck/what_check_linux.tar.bz2

Just as a note to others: this is > 40MB.

> invoke parsing the fortran include files from the fortran source
> files with a statement like...
>
> # 1 "../whatif/src/modify.f"
>
> on the first line of the source file. This is approach to include
> files works in g77 but not gfortran.

I'm not completely sure what you're trying to say.  From looking at the code
contained in that package, it looks like, even though the files are named *.F,
they're already preprocessed.  Passing the "-x f77" command line option, or
alternatively, renaming the files to use the minuscule as extension should do
the trick.  Or is there another error you're trying to point out.

- Tobi




More information about the Fortran mailing list