Eclipse CDT plugin problems

chmoder picture chmoder · Aug 20, 2011 · Viewed 38.2k times · Source

im trying to run a c program on my windows 7 computer using eclipse and im running into a little snag. I currently have Eclipse downloaded on my computer with the CDT plugin and i have also downloaded Mingw and set it to my path. When i build my simple "Hello world" program it does create a debug file with the makefile and everything in it but the concle dialog states

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

make all 

`Cannot run program "make" (in directory "C:\Users\Chmoder\workspace\C_Test\Debug"): CreateProcess error=2, The system cannot find the file specified Error: Program "make" is 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 building it, it says "Binary not found"

any help people?

Answer

user1506074 picture user1506074 · Dec 10, 2012

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)