FORTRAN 77 Language Reference

Search Path

If the name referred to by the INCLUDE statement begins with the character /, then it is taken by f77 to mean the absolute path name of the INCLUDE file. Otherwise, f77 looks for the file in the following directories, in this order:

  1. The directory that contains the source file with the INCLUDE statement

  2. The directories that are named in the -Iloc options

  3. The current directory in which the f77 command was issued

  4. The directories in the default list. For a standard install, the default list is:

    /opt/SUNWspro/SC5.0/include/f77 /usr/include

    For a non-standard install to a directory /mydir/, the default list is:

    /mydir/SUNWspro/SC5.0/include/f77 /usr/include

The release number, SC5.0, varies with the release of the set of compilers.

These INCLUDE statements can be nested ten deep.