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

Getting the path of the used libraries

dnoack
Beginner
510 Views
Hello,
when I compile and link a program with libraries without the -L option using only e.g.

ifort ... -llapack ...

I wonder which lapack library is used by default. Is there a compiler-option available, that outputs the full path of the used libraries? In LD_LIBRARY_PATH there is no lapack available.

Regards,
dnoack
0 Kudos
1 Reply
TimP
Honored Contributor III
510 Views
You're correct, there is no separate liblapack in MKL, so that library is likely to come from your OS installation, and is likely to be intended for gfortran. You could set ifort -# option to see a full echo of what happens at link time, or use ldd to see which .so libraries your executable uses.
0 Kudos
Reply