Any of the five compilers can be used from the command line by running the vcvarsall.bat batch file. By default, the full path for this file is C:\Program Files\Microsoft Visual Studio 8\VC\Vcvarsall.bat.
(Another way to enable the Visual C++ toolset is to use vcvars32.bat, but this only enables the 32-bit compiler. For more information, see Setting the Path and Environment Variables for Command-Line Builds.)
If no arguments are provided, this batch file configures the necessary environment variables for using the x86, 32-bit compiler, but it can be used to configure any of the 64-bit compilers. The following table shows the supported arguments for vcvarsall.bat.
Vcvarsall.bat argument
|
Compiler
|
Host (either natively or using emulation)
|
Target architecture
|
|---|
"x86" (default)
|
32-bit Native
|
x86, x64, Itanium
|
x86
|
"x86_amd64"
|
x64 Cross
|
X86, x64, Itanium
|
x64
|
"x86_IPF"
|
Itanium Cross
|
X86, x64, Itanium
|
Itanium
|
"amd64"
|
x64 Native
|
x64
|
x64
|
"IPF" or "itanium"
|
Itanium Native
|
Itanium
|
Itanium
|