c – ‘cl’未被识别为内部或外部命令

前端之家收集整理的这篇文章主要介绍了c – ‘cl’未被识别为内部或外部命令前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
下面是我在 windows7中运行“scons”到编译器时的错误消息:
-----------------------------------------------------------------------------------
'cl' is not recognized as an internal or external command,operable program or batch file.
scons: *** [out\windows-x86-MD-unicode-vs2008-rel\obj-static\src\featuresets\ada                                      pters\im-history\AddtochatRoomHistoryVisitor.obj] Error 1
scons: building terminated because of errors.
-----------------------------------------------------------------------------------

我已经添加了环境变量的路径,但仍然遇到了这个问题.

下面是环境变量的PATH信息:

--------------------------------------------------------------------------------------------
PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v
1.0\;C:\Program Files\CREDANT\Shield v7.1\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Fil
es\Microsoft sql Server\110\Tools\Binn\;C:\Program Files\TortoiseSVN\bin;C:\Python27;C:\cygwin64\bin
;C:\Python27\scons-2.3.1;c:\Program Files (x86)\Microsoft sql Server\100\Tools\Binn\;c:\Program File
s\Microsoft sql Server\100\Tools\Binn\;c:\Program Files\Microsoft sql Server\100\DTS\Binn\;C:\Progra
m Files (x86)\Microsoft Visual Studio 10.0\VC\bin;C:\Python27\Scripts;C:\Program Files (x86)\Microso
ft Visual Studio 10.0\VC\lib;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include
--------------------------------------------------------------------------------------------

解决方法

cl.exe可执行文件的位置不在系统PATH环境变量中.

换句话说,已要求cmd.exe命令行处理器运行cl.exe可执行文件但无法找到它.它不在PATH中或未安装.

I have added path to environment variables already,but still met this problem.

@H_301_19@

要测试它,请打开命令提示符并输入:

cl.exe – ?

原文链接:https://www.f2er.com/c/118610.html

猜你在找的C&C++相关文章