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

error #7002

wen
Beginner
574 Views
I have a main routine in main.f90:

program main
use mod1
print *, fName
end program main

and a module in mod1.f90:

module mod1
character(32) :: fName=abc
end module mod1

The compiler gave me an error:

error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MOD1]

Apparently, it did not compile mod1 and make mod1.mod before compiling the main program.

I have both files stored in the same directory. What did I do wrong? What should I do to make MS Visual Studio 2005 have mod1 compiled before compiling the main program?
0 Kudos
1 Reply
wen
Beginner
574 Views
Quoting - wen

Problem was solved after I closed and restarted MS Visual Studio.
0 Kudos
Reply