MKL not linking for Visual Fortran

I’ve recently downloaded MKL’s free trial and am trying to link it into my program. I get the error

LINK : fatal error LNK1104: cannot open file 'libiomp5mt.lib'

It appears that MKL no longer needs or includes this file when operating and that pgvf is looking for it anyway. Is there a workaround to this problem?

As a scary fix I copied mkl_blacs_mpich2_ilp64.lib and renamed it libiomp5mt.lib. I don’t use mkl_blacs_mpich2_ilp64.lib so I felt it would not have any possible function call overlaps. I also kept the original mkl_blacs_mpich2_ilp64.lib unchanged. This seems to have fixed the linking problem for the mean time.

Thanks gtarroyo,

Our tools team is looking into it. In the meantime, you can add the flag “-nodefaultlib:libiomp5mt” to the link command options to work around this issue.

Best Regards,
Mat

Thank you very much that works perfectly.
-Gabe