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

Check INCLUDE paths

jw
Beginner
618 Views
I have a module in a library and within that library I have different subroutine (MYSUB)using that module. I get the following error message when I compile my fortran subroutine:

"error #7002: Error in opening the compiled module file. Check INCLUDE paths."

I noticed that if I have the module compiled first then MYSUB will compile OK.

My questions:
- is there a way to control the order of the routines that get compiled in the library to ensure the module gets compile first?
- Is there something that can be done to remove this dependency?
0 Kudos
1 Reply
Steven_L_Intel1
Employee
618 Views
Sometimes this can happen if you have a circular dependency on modules, which confuses the build system. You might try, as an experiment, creating a new project, adding all the sources, and seeing if that will build.
0 Kudos
Reply