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

Undefined Reference to Subroutine when linking LAPACK95

killuah
Beginner
542 Views
Hi.
I'm trying to use the sterf() subroutine of the LAPACK library, however, when linking I get the error:

/tmp/ifortRaFEO1.o: In function `eigenwert_IP_ew_':
markus.f90:(.text+0x1ab9): undefined reference to `sterf_'

My compile command is

ifort markus.f90 -L/opt/intel/Compiler/11.1/056/mkl/lib/32 -lmkl_lapack95

The skript of my lessons suggests using

-lmkl_lapack95 -lmkl -lguide -lpthread

But that tells me that it can't find -lmkl.

A different skript I found had
-lmkl_lapack -lmkl_ia32 -lguide -lpthread

But that tells me that it doesn't find -lmkl_ia32

I am on Ubuntu Linux.
Can anyone help me?



0 Kudos
1 Reply
TimP
Honored Contributor III
542 Views
On the MKL forum header page, in the right hand column, there is a link advisor, which gives you link commands for current MKL. As you've seen, MKL library organization has changed over the years.
0 Kudos
Reply