- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
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?
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page