Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

64 bit compilation on 32 bit intel machines

tsrmohan
Beginner
508 Views
Can I create 64 bit dlls for Windos XP on a 32 bit machine?
What compiler should I use for this ?

- Mohan
0 Kudos
4 Replies
Daniel_B_Intel2
Employee
508 Views
Mohan,

We are building our 64 bit components for WinXP.
With MS compiler, first install the SDK from MS.

Then produce the makefile from your 32 bit project (Project -> "Export Makefile" with MS VS 6.0)
Then:
SetEnv.Bat /pre64 /RETAIL
nmake /f your_makefile.mak" "YourProjectName - Win32 Release" CLEAN
nmake /f your_makefile.mak" "YourProjectName - Win32 Release"

I have no experience with Intel compiler, but in the past there was also an opportunity for sure to make cross compilation also.

-Daniel
0 Kudos
tsrmohan
Beginner
508 Views
Hello Daniel,
- I have installed MS SDK on a Windows 2000 machine.
- I am using the cl.exe to compile the cpp files.
- When i use the link.exe with /Machine:IA64 option i am get the following error:
DllTest.obj : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'IA64'

Which means that the obj's that are created X86 compatible. What option can I specify to get IA64 compatible obj's?

Thanks,
Mohan
0 Kudos
Intel_C_Intel
Employee
508 Views
You must use cl.exe & link.exe from SDK located in Binwin64 folder.
Use WIN64 define (/D"WIN64") when you produce .obj from .c
0 Kudos
Daniel_B_Intel2
Employee
508 Views
Mohan,

I believe that "SetEnv.Bat /pre64 /RETAIL"
sets all needed pathes, so you should not run into troubles after running it.

-Daniel
0 Kudos
Reply