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

Cannot build a custom library on win64 platform

Jianshi_Huang
Beginner
1,127 Views
Hi MKL developers,

I got an error building a custom library on windows 7 64bit.

Here's the script and error message I got. What's wrong with it and how can I make one?

===
C:\Program Files\Intel\MKL\10.2.3.029\tools\builder>nmake em64t interface=cdecl
manifest=embed name=mkl_win64 export=all_cdecl_list buf_lib=

...


Microsoft Library Manager Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.

link /DLL /MANIFEST /MACHINE:AMD64 /NODEFAULTLIB /def:user_def_file.def
.\temp_cdll\*.obj mkl_intel_lp64.lib mkl_intel_thread.lib mkl_core.lib libio
mp5md.lib msvcrt.lib kernel32.lib user32.lib /out:"mkl_win64".dll
Microsoft Incremental Linker Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.

Creating library mkl_win64.lib and object mkl_win64.exp
msvcrt.lib(chkstk.obj) : fatal error LNK1112: module machine type 'X86' conflict
s with target machine type 'x64'
NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x458'
Stop.


Cheers,
Jianshi

0 Kudos
4 Replies
Andrey_G_Intel2
Employee
1,127 Views
Hello huangjs!

it looks like you are trying to build win64 libraries in win32 environment.
Could you provide values of your LIB and PATH environment variables (echo %PATH% %LIB%)?
Is your host operation system win64?

Andrey
0 Kudos
Jianshi_Huang
Beginner
1,127 Views
I'm building it on a win64 machine (windows 7).

The problem is the build environment (VS2008 Express) was set to x86 target by default and it seems there's no way to change it to amd64 due to missing batch file.

Since it's not a MKL problem anymore I'll ask at MS forums.

Thanks!


0 Kudos
TimP
Honored Contributor III
1,127 Views
Quoting - huangjs
I'm building it on a win64 machine (windows 7).

The problem is the build environment (VS2008 Express) was set to x86 target by default and it seems there's no way to change it to amd64 due to missing batch file.

Since it's not a MKL problem anymore I'll ask at MS forums.

That's true, VS2008 Express doesn't support X64.
0 Kudos
Artem_V_Intel
Employee
1,127 Views
Quoting - tim18
That's true, VS2008 Express doesn't support X64.

Hello,

I have a small comment to tim18's words. X64 support can be added to Microsoft Visual Studio 2008 Express by installing Windows SDK. Please see this webpage. Microsoft Windows 7 SDK can be downloaded from here. Also this information may be helpful.

Thanks,
Art
0 Kudos
Reply