Fortran Problem

Knobi der Rechnerschrat XBR2D96D at DDATHD21.BITNET
Thu Jan 18 20:00:45 AEST 1990


Hallo,

  I've just encountered a problem with the current (3.2) f77 compiler.
This may be mainly a documentation problem.

 It seems there are three ways to specify include files to the compiler.

a) VAX/VMS style include:        INCLUDE 'file'
b) cpp style include:      #include "file"
c) $include as documented: $include file

There are two problems. First it seems that only c) is documented and
second (and much more annoying) c) doesn't work verry well with dbx.
If you use $include's, the line numbers are incorrectly counted and
dbx is more or less useless. It seems for each $include file the
internal line numbers of the including file get incremented by the
number of lines in the $inluded file, but dbx shows the 'real' line
numbers. When using a) or b) everything works fine. Could you please
in a future version:

- update the documentation.
- and/or correct the behaviour of c)


With kind regards
Martin Knoblauch



More information about the Comp.sys.sgi mailing list