Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
6975 Discussions

LAPACK/GETRF: Unresolved external symbol _SGETRF_MKL95@12

pguillerottrane_com
557 Views
Hello,

I can't get around this error.

I reference the MKL95_LAPACK module in one of my FORTRAN routines that calls GETRF. In VS 2005, I set the linker depedencies to: mkl_lapack95.lib mkl_solver_sequential.lib mkl_intel_c.lib mkl_sequential.lib mkl_core.lib.

What am I missing?
Philippe

0 Kudos
4 Replies
TimP
Honored Contributor III
557 Views
I guess you may have CVF compatible linkage (e.g. /iface:cvf) set in your build, while you link libraries which don't work with that option.
0 Kudos
mecej4
Honored Contributor III
557 Views
We need to know at least the declarations of the arguments, the modules USEd, and the actual subroutine call in order to diagnose the problem.

If you can provide a small complete example with which one can reproduce the problem, that would be even better.
0 Kudos
Vladimir_Koldakov__I
New Contributor III
557 Views

Hello, Philippe,

tim18 is right. mkl_lapack95.lib provides only cdecl interface and you link cdecl interface library mkl_intel_c.lib.

So you should not use CVF compatible option if you call MKL lapack95 routines.

Thanks,

Vladimir

0 Kudos
pguillerottrane_com
557 Views
That was it !!! Thank you all.
Philippe
0 Kudos
Reply