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

Unable to use MKL routine

dboggs
New Contributor I
571 Views
I know this topic has been treated several times here already, but I find that the approaches (and advice) differ in enough detail to make them unfollowable for me.

I want to use the LaPack routines GETRF (factor a matrix) and GETRI (invert a factored matrix). Here is my code excerpt:

USE LAPACK95
INTEGER :: IPIV(10)
REAL:: A(10,10)
...(define A)...
CALL GETRF (A, IPIV)
CALL GETRI (A, IPIV)
...(use result)...
END

I'm attempting to build/run this in Visual Studio. In my project, I have added the following files, linked from C:\\program files\\intel\\composer xe 2011 sp1\\...:

lapack.f90
libiomp5md.lib
mkl_core.lib
mkl_intel_c.lib
mkl_intel_thread.lib

The project will compile, but I get unresolved linker errors on the GETRF, GETRI calls.

Help!


0 Kudos
1 Reply
mecej4
Honored Contributor III
571 Views
Since you have USE LAPACK95, mkl_lapack95.lib (the library that was build along with lapack95.mod) has to be included in the link step. Use the Link Line Advisor for resolving such issues.
0 Kudos
Reply