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

Link MKL with cygwin (and gfortran)

cedric_laurent
Beginner
785 Views
Hello

I would like to use the library MKL(for windows) with cygwin, using gfortran compiler instead of ifort.

I have problems at the linking with MKL libraries with this command

gfortran -o code.exe obj.o /cygdrive/c/Program\\ Files/Intel/ComposerXE-2011/mkl /cygdrive/c/Program\\ Files/Intel/ComposerXE-2011/mkl/mkl_intel_ilp64.lib /cygdrive/c/Program\\ Files/Intel/ComposerXE-2011/mkl/mkl_intel_thread.lib /cygdrive/c/Program\\ Files/Intel/ComposerXE-2011/mkl/mkl_core.lib

Is it possible to link such a way objects compiled under cygwin by gfortran and MKL libraries ?

Thanks for help.

Dam & Lau.
0 Kudos
2 Replies
Gennady_F_Intel
Moderator
785 Views
Please try to link with gfortran libs:libmkl_gnu_thread.a andlibmkl_gf_ilp64.a.
for the future, we would recomend you refer first of all to MKL Linker adviser.
--Gennady
0 Kudos
Gennady_F_Intel
Moderator
785 Views
Cedric,
the similar problem has been resolved here.
0 Kudos
Reply