I think cl
isn't in your path. You need to add it there. The recommended way to do this is to launch a developer command prompt.
Quoting the article Setting the Path and Environment Variables for Command-Line Builds:
To open a Developer Command Prompt window
With the Windows 8 Start screen showing, type Visual Studio Tools. Notice that the search results change as you type; when Visual Studio
Tools appears, choose it.
On earlier versions of Windows, choose Start, and then in the search box, type Visual Studio Tools. When Visual Studio Tools appears
in the search results, choose it.
In the Visual Studio Tools folder, open the Developer Command Prompt for your version of Visual Studio. (To run as administrator,
open the shortcut menu for the Developer Command Prompt and choose Run
as Administrator.)
As the article notes, there are several different shortcuts for setting up different toolsets - you need to pick the suitable one.
If you already have a plain Command Prompt window open, you can run the batch file vcvarsall.bat
with the appropriate argument to set up the environment variables. Quoting the same article:
To run vcvarsall.bat
At the command prompt, change to the Visual C++ installation directory. (The location depends on the system and the Visual Studio
installation, but a typical location is C:Program Files
(x86)Microsoft Visual Studio versionVC.) For example, enter:
cd "Program Files (x86)Microsoft Visual Studio 12.0VC"
To configure this Command Prompt window for 32-bit x86 command-line builds, at the command prompt, enter:
vcvarsall x86
From the article, the possible arguments are the following:
x86
(x86 32-bit native)
x86_amd64
(x64 on x86 cross)
x86_arm
(ARM on x86 cross)
amd64
(x64 64-bit native)
amd64_x86
(x86 on x64 cross)
amd64_arm
(ARM on x64 cross)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…