Eclipse CDT plugin problems

旧时模样 提交于 2019-12-01 04:27:57

Another solution is to set the MINGW_HOME variable in eclipse.ini :

-DMINGW_HOME=C:\Program Files (x86)\CodeBlocks\MinGW

This avoid to change the system PATH (often requires administrator rights)

(solution suggested by help of eclipse / CDT)

The error is: there is no make in %PATH. Make is UNIX utility to help building a projects. For windows OS, the make utility is part of msys, not of mingw32.

According to your path and to my setup of mingw and msys, you have no msys installed (or the path of Msys was not recorded in system %PATH variable).

For you, msys will be like this path in $PATH variable:

  C:\MINGW\msys\1.0\Bin;

Msys can be downloaded from http://www.mingw.org/ too.

If you did a download of universal installer (it is the easiest variant), you just should check, is there a make.exe file in the C:\MINGW\msys\1.0\Bin directory and add this directory to the system PATH variable.

Dolan Antenucci

For me (on OS X), even though my personal environment (i.e. if in bash, echo $PATH) had /Developer/usr/bin in it, I still had to add it to Eclipse's Environment variables:

Go to Eclipse Preferences -> C/C++ -> Environment -> Add.. -> "${PATH}:/Developer/usr/bin

In the case of cygwin, you'd just put the right directory to where make is.

This was confusing for me, so figured share the details that helped me. :)

source: eclipse forum post via Adel on another SO post.

user3007390
  • Goto "Window"->"Prefenerces"->"C++"->"Build"->"Environment"
  • add "COMMAND"="c:\mingw\bin\make.exe"`.
  • on the other side, you need a batch file "c:\mingw\bin\rm.bat"
  • In that file, put:

    @echo off
    :start
        if "%1" == "" goto end
        if "%1" == "-f" goto loop
        del %1
    :loop
        shift
        goto start
    :end
    

I had the same problem with eclipse Luna version.

I could not even compile the "Hello World" example that comes embedded in the IDE. It kept saying that make file was not found in the path even though it was.

I tried every suggestion in this forum (making sure the path was in Windows and Eclipse variables, and making the rm.bat file) but nothing helped.

What I did is that I copied make.exe from C:\MINGW\msys\1.0\Bin and paste it into the folder where eclipse.exe resides. This might not be the optimal solution but it solved it.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!