64 bit compilation on 32 bit intel machines

64 bit compilation on 32 bit intel machines

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

- Mohan

5 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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

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

You must use cl.exe & link.exe from SDK located in Binwin64 folder.
Use WIN64 define (/D"WIN64") when you produce .obj from .c

Mohan,

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

-Daniel

Login to leave a comment.