本文介绍了Eclipse CDT构建错误:不在路径中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近(实际上是今天)才开始将Eclipse CDT用于Windows。创建一个项目,将一个测试C文件(Hello World)添加到项目中。生成项目,出现如下错误。

I just recently(actually today) started using Eclipse CDT for windows. Created a project, a test C file(Hello World) added to project. Build the project, I got error as below.

Error: Program make is not found in Path -

因此,我读到Eclipse CDT需要安装了Mingw / MSYS。现在我看到

So then I read that Eclipse CDT needs Mingw/MSYS, which I did install. Now i See that there is make.exe in

C:\MinGW\msys\1.0\bin

但是由于我没有管理员权限,因此无法将包含make的文件夹添加到Windows的Path系统变量中。 (我不太可能获得管理员特权)

But Since I dont have administrator privileges, I could not add this folder containing make to the Path system variable on Windows. (I am not likely to get administrator privileges)

现在如何解决此错误,以便在Windows上构建和使用CDT? Eclipse CDT的任何Project设置(如果添加了制作路径都可以帮助解决此问题?)?

Now how do I work around this error to build and use CDT on windows? Any Project settings for Eclipse CDT which if added the path to make could help resolve this?

推荐答案

能够解决此问题这个问题。

Was able to get a fix around this problem.

用户环境变量Path (Was和gcc / g ++(由Mingw / Ansys安装)的正确路径添加了不允许编辑系统变量路径)。

Added the correct paths for two exes - make and gcc/g++ (installed by Mingw/Ansys) to the User environment variable Path (Was not allowed to edit System variable Path).

但是将这些路径添加到用户环境变量Path 中也有助于解决此问题。现在,Eclipse CDT可以很好地构建和执行代码。

But adding these paths to User environment variable Path also helped to resolve this. Now Eclipse CDT built and executed the code fine.

这篇关于Eclipse CDT构建错误:不在路径中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 09:47