2.6 Options for directory search
These options affect how GNU Fortran searches for files specified by the INCLUDE
directive and where it searches for previously compiled modules.
It also affects the search paths used by cpp
when used to preprocess Fortran source.
-
-I
dir -
These affect interpretation of the
INCLUDE
directive (as well as of the#include
directive of thecpp
preprocessor).Also note that the general behavior of
-I
andINCLUDE
is pretty much the same as of-I
with#include
in thecpp
preprocessor, with regard to looking forheader.gcc
files and other such things.This path is also used to search for
.mod
files when previously compiled modules are required by aUSE
statement.See Options for Directory Search, for information on the
-I
option. -
-J
dir -
This option specifies where to put
.mod
files for compiled modules. It is also added to the list of directories to searched by anUSE
statement.The default is the current directory.
-
-fintrinsic-modules-path
dir - This option specifies the location of pre-compiled intrinsic modules, if they are not in the default location expected by the compiler.
© Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
https://gcc.gnu.org/onlinedocs/gcc-5.4.0/gfortran/Directory-Options.html