Reputation: 210785
I've noticed that when I compile a 64-bit program from Visual Studio 2008, the compiler that runs is in the bin\x86_amd64
folder, not from the bin\amd64
folder -- even though both of them exist.
Is there any way to force the 64-bit compiler to run instead of the cross-compiler?
Upvotes: 2
Views: 1442
Reputation: 35921
go to Tools->Options->Projects and Solutions->VC++ Directories
, then select x64
for platform and select Executable Files
. This list is like a PATH environment variable for everything started from within VS, including compiler/linker/debugger etc.
Normally the first line will be
$(VCInstallDir)bin\x86_amd64
so changing this to
$(VCInstallDir)bin\amd64
will pick cl.exe etc from that directory instead.
Upvotes: 3