How to compile for AMD64 with VC++ Express?
Today I downloaded Visual Studio C++ Express Edition + Win64 Trial. I do the following program:
#include <stdio.h>
void main ()
{
printf("hola");
}
Then I compiled and got a silly x86 program... Then I changed the Linked->Advanced->(/MACHINE:AMD64) thing and then I got:
fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'
Oh well.... what am I doing bad? I just want to compile a .exe for x64 native omg, is this soooooooooooooooooo difficult? thx
[546 byte] By [
bubu] at [2007-12-16]
Hi bubu,
you changed only the linker settings and not the compiler settings. Thats why yoz get the error message. The compiler was not switched to x64 but the linker.
The best thing ( and working ) you can do is:
1. right click on project in project tree
2. go to properties
3. click on the right top bottom "Configuration manager"
4 then choose your prject and the column "Platform"
5. Comboxbox popups and then choose "New"
6. Then choose in the top combobox "x64"
7. Then choose in the bottom combobox "copy from" -> Win32
After that all should compile the way you want it to.
Bye
Martin