简体   繁体   English

Visual Studio找不到cl.exe

[英]Visual Studio not finding cl.exe

I just installed and configure VS for Windows 10 using the online instructions but when I try to run the sample program, I get an error that cl.exe cant be found. 我只是使用在线说明安装并配置了VS for Windows 10,但是当我尝试运行示例程序时,出现错误,找不到cl.exe。 The executable exists in the defined compiler path. 可执行文件存在于定义的编译器路径中。 If I copy the full path and paste it in a command window, it runs. 如果我复制完整路径并将其粘贴到命令窗口中,它将运行。

Any suggestions would be appreciated. 任何建议,将不胜感激。

Thanks! 谢谢!

Did you run the VCVARSALL.BAT to configure the environment?? 您是否运行VCVARSALL.BAT来配置环境? I suggest you copy/set all this config variables in Control Panel | 我建议您在“控制面板”中复制/设置所有这些配置变量。 System | 系统| System | 系统| Advanced Config | 高级配置| Environment Variables Or create a .reg file with this configuration and double-click it... Bye... 环境变量或使用此配置创建.reg文件,然后双击它...再见...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM