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

beginner question: Error#7002 when using IMSL

binwei116
Beginner
923 Views
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

0 Kudos
5 Replies
Steven_L_Intel1
Employee
923 Views
Please read Installing and Configuring the IMSL Libraries. In particular, you need to add the IMSL Include directory to Fortran's list.
0 Kudos
binwei116
Beginner
923 Views
Please read Installing and Configuring the IMSL Libraries. In particular, you need to add the IMSL Include directory to Fortran's list.
Steve, Thank you very much for your helpful response. I followed your suggestion, however, the same problems still persist. Could you please give me further help? Thanks a lot.

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.




0 Kudos
Steven_L_Intel1
Employee
923 Views
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.
0 Kudos
binwei116
Beginner
923 Views
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.
Steve, thanks for your help.

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.



0 Kudos
Steven_L_Intel1
Employee
923 Views
Where do you see instructions about modifying the list for Executable Files? There is nothing for IMSL you should put there.
0 Kudos
Reply