PATH 错误中未找到 Eclipse SDK 程序“cl”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8175204/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Eclipse SDK Program "cl" is not found in PATH error
提问by Veridian
Hi I am running eclipse sdk in windows and I am trying to compile my C program. But when I build I get the following error:
嗨,我正在 Windows 中运行 eclipse sdk,我正在尝试编译我的 C 程序。但是当我构建时,我收到以下错误:
**** Internal Builder is used for build ****
cl /c /EHs /MD /Zi /nologo /Fosrc\test.obj ..\src\test.c
Internal Builder: Cannot run program "cl": Launching failed
Error: Program "cl" is not found in PATH
What is the problem?
问题是什么?
采纳答案by Tim Wright
Try appending the full path to cl to your PATH environment variable in windows http://www.itechtalk.com/thread3595.htmljust append it by adding a semi colon followed by the path to the existing value in PATH
尝试将 cl 的完整路径附加到 windows http://www.itechtalk.com/thread3595.html 中的PATH 环境变量,只需添加一个分号,后跟路径中现有值的路径即可
回答by David.G
Project -> properties -> C/C++ Build -> Tool chain editor select the toolchain you have installed as the "current toolchain"
项目 -> 属性 -> C/C++ Build -> 工具链编辑器选择你已经安装的工具链作为“当前工具链”