I've encountered a strange compilation error, which my colleagues and I cannot trace down to a user error.
Below is an isolated test problem. It contains a module mf (in mf.f90), which uses module mdm (in mdm.f90).
Unfortunately, a clean build causes mf.f90 to be compiled *before* mdm.f90, so we get:
Compiling with Intel(R) Visual Fortran Compiler XE 184.108.40.206 [IA-32]...
D:\dam_ar\scratch\build_problem\src\mf.f90(2): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MDM]
There's two more files, but they don't seem to be causing problems.
I see no cyclic dependency, so why is the compiler building mdm.f90 *after* mf.f90?
The deps are:
mf uses mdm uses sbm
bcm uses sbm
Here's the four file listings, all are also included in the attachment:
end module bcm
end module mdm
end module mf
end module sbm
The attachment contains the example files + vfproj+sln for a static library configuration, no user-defined compiler settings that I'm aware of.
Thanks for any help!