Problems with the Eclipse CDT Plugin

im trying to run a c-program on my windows 7 computer using eclipse and im, starting up a little snag. Eclipse is currently loaded on my computer with the CDT plugin, and I also downloaded Mingw and installed it in my path. When I create my simple program "Hello world", it creates a debug file with a make file and everything in it, but in a dialog state concel

**** Build of configuration Debug for project C_Test **** make all 

`Cannot start the" make "program (in the directory" C: \ Users \ Chmoder \ workspace \ C_Test \ Debug "): CreateProcess error = 2, the system cannot find the specified file Error: the" make "program was not found in PATH

PATH = [C: \ Users \ Chmoder \ Downloads \ eclipse; C: \ MINGW \ Bin; C: \ Program Files \ Common Files \ Microsoft Shared \ Windows Live; C: \ Program Files (x86) \ Common Files \ Microsoft Shared \ Windows Live, C: \ Program Files (x86) \ ATI Stream \ bin \ x86_64; C: \ Program Files (x86) \ ATI Stream \ bin \ x86; C: \ Windows \ system32; C: \ Windows C: \ Windows \ System32 \ Wbem; C: \ Windows \ System32 \ WindowsPowerShell \ v1.0 \; C: \ Program Files (x86) \ ATI Technologies \ ATI.ACE \ Core-Static; c: \ Program Files (x86) \ Common Files \ Roxio Shared \ DLLShared \; c: \ Program Files (x86) \ Common Files \ Roxio Shared \ 12.0 \ DLLShared \; C: \ Program Files (x86) \ Windows Live \ Shared] `

Also, when I try to run my program after creating it, it says "Binary not found"

any help person?

+6
source share
5 answers

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

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

This avoids changing the PATH system (admin rights are often required)

(solution offered by eclipse / CDT help )

+6
source

Error: in% PATH there is no make . Make is a UNIX utility that helps you create projects. For Windows, make is part of msys, not mingw32.

According to your path and my setup of mingw and msys, you do not have msys installed (or the Msys path was not written to the System% PATH variable).

For you, msys will be similar to this path in the $ PATH variable:

  C:\MINGW\msys\1.0\Bin; 

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

If you download the universal installer (this is the easiest option), you should check if the make.exe file make.exe in the C:\MINGW\msys\1.0\Bin directory and add this directory to the PATH system variable.

+4
source

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

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

In the case of cygwin, you just put the correct directory where make .

This baffled me, so I decided to share the details that helped me. :)

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

0
source
  • Go to "Window" → "Prefenerces" → "C ++" → "Build" → "Environment"
  • add "COMMAND" = "c: \ mingw \ bin \ make.exe" `.
  • on the other hand, you need the batch file "c:\mingw\bin\rm.bat"
  • In this file, put:

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

I had the same problem with the Eclipse Luna version.

I could not even compile the Hello World example, which is built into the IDE. He continued to say that the make file was not found on the path, although it was.

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

What I did was that I copied make.exe from C: \ MINGW \ msys \ 1.0 \ Bin and pasted it into the folder where eclipse.exe is located. This may not be the optimal solution, but it solved it.

0
source

Source: https://habr.com/ru/post/895503/


All Articles