What is the gfortran strategy to look for *.mod files?

François-Xavier Coudert fxcoudert@gmail.com
Mon Feb 5 12:55:00 GMT 2007


> Am I correct to understand the default strategy of
> gfortran to look for *.mod files as:
> (1) look into the source directory, if the right file is found, use it;
> (2) if not look into the gfortran "intrinsic"(?) modules?

I think it looks into the intrinsic directory first if the module is
specified to be intrinsic, but it is otherwise OK.

> I may miss some other cases and I am not considering the case where a directory
> is given to the compiler.  Is this documented somewhere?

This is compiler switches -I and -J/-M.

FX



More information about the Fortran mailing list