Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/visual-studio/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
未能使用“;cl";即使在环境变量集之后_C_Visual Studio_Environment Variables - Fatal编程技术网

未能使用“;cl";即使在环境变量集之后

未能使用“;cl";即使在环境变量集之后,c,visual-studio,environment-variables,C,Visual Studio,Environment Variables,因此,我试图在桌面上使用“Administrate:Developer命令提示符for VS2015”下的cl编译helloworld.c文件 我通过谷歌搜索发现这是一个环境变量问题,并按照下面的链接进行设置。() 但是在我找到并运行VSVARS32文件之后 "Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools", 我仍然无法使用我的cl命令,这表明 "'cl' is not recognized as an inte

因此,我试图在桌面上使用“Administrate:Developer命令提示符for VS2015”下的cl编译helloworld.c文件

我通过谷歌搜索发现这是一个环境变量问题,并按照下面的链接进行设置。()

但是在我找到并运行VSVARS32文件之后

"Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools", 
我仍然无法使用我的cl命令,这表明

"'cl' is not recognized as an internal or external command, operable program or batch file."

请帮助我,如有任何建议,将不胜感激

更改环境变量时,您需要关闭并重新打开cmd.exe。这咬了我几次。谢谢你的建议,但还是没有运气,我试了很多次_T@a3f尝试重新启动我的笔记本电脑,但仍然没有成功
cl
是gcc编译器/链接器的子/内部功能。最好只运行
gcc
,而不是围绕该功能的正确使用执行“结束运行”。@user3629249谢谢!,它解决了我的问题,认为cl是编译的唯一方法