Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Module referencing/usage

abhimodak
New Contributor I
710 Views

Hi

I have a kind of hypothetical question...

I have two modules A, B, and a main program P. Module B uses module A and Program P uses module B. (That is, they contain use moduleB and use moduleA statements, respectively.) In order to compile program P, the .mod files for "both" module A and B must be "visible" through the search paths for the modules (i.e. Include directories, working directory, directory of source file etc etc.). 

I wonder if the standard says anything about the expected behavior. (I guess not.)  What I am looking for is -- isn't/shouldn't/couldn't visibility of moduleB.mod be enough. (I imagine that it would mean size of moduleB.mod file will be bigger.)

Abhi

0 Kudos
2 Replies
mecej4
Honored Contributor III
710 Views

Please see this recent thread on this topic: https://software.intel.com/en-us/forums/topic/520421 .

0 Kudos
abhimodak
New Contributor I
710 Views

Thanks mecej4 (and IanH).

Abhi

0 Kudos
Reply