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

Custom DLL x86 target linking to x64 libiomp5md

vikrantca
Beginner
344 Views
Hello,
I am trying to build a custom dll.
Here is what I am using:

MKL 10.2 Update 5
Windows Server 2008 R2, this is x64
Visual Studio 2010 Pro

The Custom DLL builds fine, when I look at the dependencies using depends, I see that it has linked to libiomp5md, but a x64 version. Screenshot is attached.30232-mklcusissue.jpg

How can I fix this?

Thank you for your advice.

0 Kudos
3 Replies
Todd_R_Intel
Employee
344 Views
This might be a bug in the makefile. What target did you use to create the custom DLL? -Todd
0 Kudos
vikrantca
Beginner
344 Views
I used ia32 as the target.

What I also tried was to run the test app on my machine (Win SVR 2008 R2, x64) and a test virtual pc (Win XP x86). The test app runs fine.
Also on the virtual PC, I renamed the libiomp5md.dll to junk, thus getting an error saying that the dll failed to load so that I could be sure that the test app was using that DLL.

Thank you for your help.
VA
0 Kudos
Todd_R_Intel
Employee
344 Views
Have you checked that your PATH environment variable contains the ia32 libraries first on the path? There are two version of libiomp5md, one in the directory for Intel 64 libraries (em64t\lib) and one in the directory for ia32 libraries.

Todd
0 Kudos
Reply