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

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

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

3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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

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

Leave a Comment

Please sign in to add a comment. Not a member? Join today