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

Can't build test sample using VML for x64 platfom: linker says about unresolved externals

vd19
Beginner
924 Views

Hello.

Actually, the subject described in thread title name. When I'm build a sample for x86 platform, it builds without errors, runs and works correctly. And if I'm try to build for x64 platform - linker says about errors like this:

Error 1 error LNK2019: unresolved external symbol mkl_vml_core_e9_vml_zAdd referenced in function vzadd mkl_intel_lp64.lib Using_VML
Error 2 error LNK2019: unresolved external symbol mkl_vml_core_h8_vml_zAdd referenced in function vzadd mkl_intel_lp64.lib Using_VML
Error 3 error LNK2019: unresolved external symbol mkl_vml_core_y8_vml_zAdd referenced in function vzadd mkl_intel_lp64.lib Using_VML
Error 4 error LNK2019: unresolved external symbol mkl_vml_core_u8_vml_zAdd referenced in function vzadd mkl_intel_lp64.lib Using_VML

I'm using VisualStudio 2008 and C++ project.

For x64 platform some project settings are changes:

Additional directory for linker isC:\\Program Files\\Intel\\MKL\\10.2.3.029\\em64t\\lib\\

Additional dependencies for linker too are libiomp5md.lib mkl_core_dll.lib mkl_intel_thread_dll.lib mkl_intel_lp64.lib mkl_solver_lp64.lib

Target machine is x64 of course

And environment path for debugging: PATH=C:\\Program Files\\Intel\\MKL\\10.2.3.029\\em64t\\bin\\;$(PATH)

P.S. It take place only if I'm use dynamic linking. If changedependencies from dynamic linking to static (change references frommkl_core_dll.lib mkl_intel_thread_dll.lib tomkl_core.lib mkl_intel_thread.lib) it builds ok.

It's very interesting...

0 Kudos
1 Solution
TimP
Honored Contributor III
924 Views
Doesn't the link advisor specify mkl_intel_lp64_dll.lib when using these other dynamic libraries?

View solution in original post

0 Kudos
5 Replies
TimP
Honored Contributor III
925 Views
Doesn't the link advisor specify mkl_intel_lp64_dll.lib when using these other dynamic libraries?
0 Kudos
vd19
Beginner
924 Views

Of course! Thank you, Tim.

It's interesting but this references are set by Intel's script intergated to Visual Studio (right click on project name in Project Explorer and use Intel MKL Project Settings). I'm wonder...

0 Kudos
Gennady_F_Intel
Moderator
924 Views

it looks like the error. Do you use bundled MKL from Compiler Professional Edition or stanadlone version? What are these versions?

0 Kudos
Gennady_F_Intel
Moderator
924 Views

Hi vd19, We reproduced the issue. and the issue has been submitted to our internal development tracking database for further investigation, we will inform you once a new update becomes available.
Here is a bug tracking number for your reference:DPD200090911
--Gennady

0 Kudos
vd19
Beginner
924 Views

Thank you, Gennady.

I'm use standalone MKL package, version number 10.2.3.029

0 Kudos
Reply