Community
cancel
Showing results for 
Search instead for 
Did you mean: 
vikrantca
Beginner
72 Views

Custom DLL x86 target linking to x64 libiomp5md

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
72 Views

This might be a bug in the makefile. What target did you use to create the custom DLL? -Todd
vikrantca
Beginner
72 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
Todd_R_Intel
Employee
72 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
Reply