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

'Error in opening the compiled module file. Check INCLUDE paths.'

skravoof
Beginner
2,052 Views
I moved to intel visual fortran from other compiler. I wrote a simple code as shown below, which is giving error as 'Error in opening the compiled module file. Check INCLUDE paths.'
program HelloWorldF90
use msimsl
write(*,*) "Greetings, denizens of planet Earth!"
pause
end program HelloWorldF90

I tried the calender sample program, found similar error as
error #7002: Error in opening the compiled module file. Check INCLUDE paths. [CALNMOD]

the part of the same code....
program Calendar
USE CALNMOD !Data Module
USE IFQWIN
USE IFNLS
implicit none

INTEGER(2) fontnum, numfonts
INTEGER(4) cp
type (xycoord) pos


Am I doing something wrong here?
Thanks in advance
0 Kudos
2 Replies
DavidWhite
Valued Contributor II
2,051 Views
Quoting - skravoof
I moved to intel visual fortran from other compiler. I wrote a simple code as shown below, which is giving error as 'Error in opening the compiled module file. Check INCLUDE paths.'
program HelloWorldF90
use msimsl
write(*,*) "Greetings, denizens of planet Earth!"
pause
end program HelloWorldF90

I tried the calender sample program, found similar error as
error #7002: Error in opening the compiled module file. Check INCLUDE paths. [CALNMOD]

the part of the same code....
program Calendar
USE CALNMOD !Data Module
USE IFQWIN
USE IFNLS
implicit none

INTEGER(2) fontnum, numfonts
INTEGER(4) cp
type (xycoord) pos


Am I doing something wrong here?
Thanks in advance

Make sure that the modules you are USING are required for the program ... e.g.

HelloWorld is not using module MSIMSL, so the USE statement is not required.

In the Calendar example, if the module CALNMOD is needed by the program, then the file containing this module needs to be compiled before you compile the program file.

Regards,

David
0 Kudos
Les_Neilson
Valued Contributor II
2,051 Views
skravoof :

Quoting - David White
In the Calendar example, if the module CALNMOD is needed by the program, then the file containing this module needs to be compiled before you compile the program file.

This point made by David is the important one : the CALNMOD module (and any other relevant modules) needs to be compiled first.
Also as the error message says, in your project "include paths" you will need to provide a link to thedirectory where to findthe calnmod.mod file.

Les
0 Kudos
Reply