Creating a 64-bit executable on a 32-bit OS

I am working on a 32-bit Windows XP OS in C ++. But I have to create an executable file for 64-bit Windows 7. How do I do this? I do not want to run the executable, I just want to create it. Also, if you need to know the processors, ask me.

I read a little about it on these sites, cross-compiling for x64 and the msdn article on cross-compiling . But I am not able to understand much of this. Can someone step by step how to do this?

In addition to this, can someone tell me what cmake is? You can also check if I have fully installed the Visual Studio installation or the default installation after the installation is complete.

+5
source share
1 answer

If you are using Visual Studio, it is just a matter of setting the linker to create code for the 64-bit processor.

Open the project properties and select Configuration properties | Linker | Advancedand switch Target Machineto MachineX64.

Alternatively, you can add a new build platform, the IDE will configure these options for you. Open Configuration Manager, select your project, and in the Platform column, select <New...>. Then select a 64-bit processor.

+4
source

All Articles