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

failure to open error preventing any IMSL from functioning

fahrenko
Beginner
471 Views
I'm using an Intel Fortran compiler version 10.1.011 on Visual Studios and I'm having some issues getting the included IMSL package to work. I've included the "include" and "lib" directories as specified. And I've tried to compile the following code:
PROGRAM basic_matrix_operations
USE linear_operators
IMPLICIT NONE
REAL, DIMENSION(1:3,1:3) :: matrix, invMatrix
INTEGER :: i, j, n

INCLUDE 'link_fnl_static.h'
!DEC$ OBJCOMMENT LIB:'libguide.lib'

PRINT *, 'please enter the 3x3 matrix'
DO i =1, 3
READ *, (matrix(i,j), j = 1, 3)
END DO
! echo back matrix
PRINT *, 'martix ='
DO i = 1, 3
PRINT *, (matrix(i,j), j = 1, 3)
END DO
PRINT *, ' '
! inverse
InvMatrix = .i. matrix
PRINT *,'Inverse Matrix:'
DO i = 1, 3
PRINT *,(InvMatrix(i,j), j = 1, 3)
END DO
END PROGRAM

When I try to compile the code I get the following error messages:
error #11035: Fatal error cannot open imsl.lib
error error_during_IPO_compilation: problem during multi-file optimization compilation(code 1)

In short: I'm stuck.

Any help would be fantastic

Max
0 Kudos
1 Reply
Steven_L_Intel1
Employee
471 Views
You need to add the path to the IMSL library folder to Tools > Options > Intel Fortran > Compilers > Library Files. Please read the section on Using IMSL in the compiler documentation: Building Applications > Using Libraries > Using IMSL. It looks as if you've already done this for include files.
0 Kudos
Reply