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]
# 1
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

maddin123 at 2007-9-9 > top of Msdn Tech,Visual C++,Visual C++ General...
# 2
Only Platform->New->Win32 is available..... I dont see the other ones :D
bubu at 2007-9-9 > top of Msdn Tech,Visual C++,Visual C++ General...
# 3
VC++ Express installation doesn't support 64bit development.

Here is a related post the covers similar issue:
http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=57775

Also, take a look at http://lab.msdn.microsoft.com/vs2005/productinfo/productline/default.aspx where more info regarding what type of installations include what types of features.

However, from your original post, I noticed you were mentioning with "Win64 Trial", am I missing something here, what kind of Win64 did you mean?

Thanks,
Ayman Shoukry
VC++ Team

AymanShoukry at 2007-9-9 > top of Msdn Tech,Visual C++,Visual C++ General...