Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I build x64 app on a 32 bit machine?

How do I develop a 64bit app on a 32 bit PC?

I'm using VS 2008 on WinXP 32 bit. I set the visual studio linker to /machine:x64 and created x64 configurations. All will compile and link OK, but when I run the dependency walker on the exe I see the 64 bit mscvr90.dll, etc. pointing to all the Win32 dlls, Kernel32.dll, Advapi32, Comdlg32, Gdi32, etc.

When I copy the exe over to run on a Win64 system it is rejected "...application configuration is incorrect". How do I tell visual studio to stay away from the 32 bit realm?

like image 481
user72260 Avatar asked Mar 31 '09 18:03

user72260


1 Answers

Yes, it's called cross-compiling.

http://blogs.msdn.com/windowssdk/archive/2007/09/08/updated-windows-sdk-visual-c-cross-compilers.aspx

like image 157
rmmh Avatar answered Sep 28 '22 12:09

rmmh