###  | # Boost.Build ## msvc toolset

## Introduction

Boost.Build's msvc toolset supports the Microsoft Visual C++ command-line tools on Microsoft Windows. It supports any version of Visual C++, but in case you have more than one version of Visual C++ installed, and you want to use both, the additional vc7 toolset can be used for Visual C++ 7.0.

## Configuration Variables

The `msvc` toolset responds to the following variables, which can be set in the environment or configured on the jam command-line using `-sVARIABLE_NAME=`value:

Variable Name | Semantics | Default | Notes
--- | --- | --- | ---
`MSVC_ROOT` | The path to the MSVC installation directory | `c:\Program Files\Microsoft Visual C++\VC98` | If `MSVCDir` is set in the environment, the toolset will assume `VCVARS32.BAT` has already been called, and will ignore this variable.
`VISUALC` | The path to the MSVC installation directory | `c:\Program Files\Microsoft Visual C++\VC98` | If `MSVCDir` or `MSVC_ROOT` is set in the environment, the toolset will assume `VCVARS32.BAT` has already been called, and will ignore this variable.
`MSSDK_ROOT` | The path to the Mircrosoft Platform SDK installation directory | (none) | If `MSSdk` is set in the environment, the toolset will assume `SetEnv.BAT` has already been called, and will ignore this variable.

## Related

The support for use of the Microsoft Platform SDK on this toolset can be further configured with the use of a pair of features. The features specify what the target platform environment is.

- Feature `ms-platform` specifies the OS variant to target. Possible values are: `2000`, `xp32`, `xp64`, `pre32`, and `pre64`
- Feature `ms-build` specifies the type of code to target. Possible values are: `debug`, and `retail`

These features are only relevant if you don't setup your own target environment by running the `SetEnv.BAT` utility.

Revised 14 May, 2002

© Copyright Dave Abrahams 2002. All Rights Reserved.