- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I used to use Compaq Visual Fortran. However, I'm switching to Intel Visual Fortran, but am having lots of trouble. The following two errors occured when I tried to run a simple program below. Can anyone help me? Thanks a lot.
Error 1 : error #7002: Error in opening the compiled module file. Check INCLUDE paths. [UMACH_INT]
Error 2 : error #6404: This name does not have a type, and must have an explicit type. [ANORDF]
Program:
program main
USE UMACH_INT
USE ANORDF_INT
IMPLICIT NONE
INTEGER NOUT
REAL P, X1, X2
!
CALL UMACH (2, NOUT)
X1 = (90.0-100.0)/15.0
P = ANORDF(X1)
WRITE (NOUT,99998) P
99998 FORMAT (' The probability that X is less than 90 is ', F6.4)
X1 = (105.0-100.0)/15.0
X2 = (110.0-100.0)/15.0
P = ANORDF(X2) - ANORDF(X1)
WRITE (NOUT,99999) P
99999 FORMAT (' The probability that X is between 105 and 110 is ', &
F6.4)
end program
Error 1 : error #7002: Error in opening the compiled module file. Check INCLUDE paths. [UMACH_INT]
Error 2 : error #6404: This name does not have a type, and must have an explicit type. [ANORDF]
Program:
program main
USE UMACH_INT
USE ANORDF_INT
IMPLICIT NONE
INTEGER NOUT
REAL P, X1, X2
!
CALL UMACH (2, NOUT)
X1 = (90.0-100.0)/15.0
P = ANORDF(X1)
WRITE (NOUT,99998) P
99998 FORMAT (' The probability that X is less than 90 is ', F6.4)
X1 = (105.0-100.0)/15.0
X2 = (110.0-100.0)/15.0
P = ANORDF(X2) - ANORDF(X1)
WRITE (NOUT,99999) P
99999 FORMAT (' The probability that X is between 105 and 110 is ', &
F6.4)
end program
Link Copied
5 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please read Installing and Configuring the IMSL Libraries. In particular, you need to add the IMSL Include directory to Fortran's list.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - Steve Lionel (Intel)
Please read Installing and Configuring the IMSL Libraries. In particular, you need to add the IMSL Include directory to Fortran's list.
Following the instructions in "Installing and Configuring the IMSL Libraries", I did the following:
(1) Under Tools Options Intel Fortran Compilers, I added "C:Program FilesVNIimslfnl600IA32includeSTATIC and C:Program FilesIntelMKL10.1.1.022include" to "Includes";
and C:Program FilesVNIimslfnl600IA32lib and C:Program FilesIntelMKL10.1.1.022ia32lib to Library
and C:Program FilesVNIimslfnl600IA32lib and C:Program FilesIntelMKL10.1.1.022ia32bin to Executables
(2) Under Project Properties Configuration Properties Linker Input and in the " Additional Dependencies" line, I added the following static link for 32 bit application: imsl.lib imslsuperlu.lib imslhpc_l.lib imsls_err.lib imslmpistub.lib mkl_intel_c.lib mkl_intel_thread.lib mkl_core.lib libiomp5md.lib
Unfortunately, the same problems exist even after I simplified the program as
program main
USE UMACH_INT
USE ANORDF_INT
IMPLICIT NONE
INTEGER NOUT
REAL P, X1, X2
CALL UMACH (2, NOUT)
X1 = (90.0-100.0)/15.0
P = ANORDF(X1)
end program
The error messages are the following:
Error 1 error #7002: Error in opening the compiled module file. Check INCLUDE paths. [UMACH_INT]
Error 2 error #6404: This name does not have a type, and must have an explicit type. [ANORDF]
Error 3 Compilation Aborted (code 1)
Very sadly I have no idea where goes wrong. Could Steve and anyone else help me out? Thanks a lot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Do you have IMSL from Intel Visual Fortran installed? Is there anything in C:Program FilesVNIimslfnl600IA32includeSTATIC ? Note that to get IMSL you have to have purchased "Intel Visual Fortran Professional Edition with IMSL" and have separately downloaded and installed the IMSL library.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - Steve Lionel (Intel)
Do you have IMSL from Intel Visual Fortran installed? Is there anything in C:Program FilesVNIimslfnl600IA32includeSTATIC ? Note that to get IMSL you have to have purchased "Intel Visual Fortran Professional Edition with IMSL" and have separately downloaded and installed the IMSL library.
Yes, I have purchased IMSL and installed it as well. I figured out the problem. I didn't quite understand the instruction from "Using Intel MKL with IMSL", so I mistakenly added all "Static/Dynamic links for 32bit and 64bit applications" to "Additional Dependencies" under Project/Properties.
Steve, could you plesae help me with a quick question? Thanks. I noticed in the instruction, it says "Select Executable Files, and then type in the directory for the IMSL* library executable files (e.g. C:Program FilesVNIimslfnl600IA32lib) and MKL path for DLL files (e.g. C:Program FilesIntelMKL10.1.1.022ia32bin)"
Why don't we add "C:Program FilesVNIimslfnl600IA32bin", but "...lib" to Executables? Thanks a lot for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Where do you see instructions about modifying the list for Executable Files? There is nothing for IMSL you should put there.

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