Tutorial :How to install C Compiler to Eclipse?


I have install the C/C++ CDT Version of Eclipse. After making a HelloWorld.c file and get the code in there I get an error of "Launch failed. Binary not found".

I found in google that my Eclipse miss the compiler and I install MinGW on my computer and add the path to env variables (tested it with "gcc -v" in cmd and succeded).

But poorly it get the same Launch Failed error - any ideas, what step I forgot?


Some things to check:
1.) MinGW tools are installed as well. Make sure you have the C compiler and the Make program
2.) Check your Environment variables. Make sure both the compiler and Make are on the path.
3.) Eclipse is a temperamental beast at times, don't lose heart :-)
4.) If you're looking for a good IDE (without care for ideological concerns), might be worth looking at Bloodshed C++ IDE and Visual C++ 2010 express (or whatever they call their free version).
5.) Check the options menu in Eclipse to make sure it's looking at the correct environment variables for finding the Path.


IMHO, the simplest setup for eclipse on windows these days is cygwin - it seems to have been updated more recently than mingw, and works better.

Go to http://www.cygwin.com/, download the installer, select the default directory of c:\cygwin. Select 'All users'.

When it offers a list of packages, select 'gcc', 'binutils' and 'make' under the 'devel' category.

Add c:\cygwin\bin to your windows environment PATH.


Make sure Eclipse knows where to find your gcc compiler. An easier way would be to use EasyEclipse until you are more comfortable with your dev env.


I needed to move from the MinGW gcc to the CygWin gcc - all the C++2011 works and others say it is a better option too. Download the CygWin binaries etc. and then open up Eclipse.

In project properties, C/C++ Build -> Environment and set the CYGWIN_HOME variable. This worked fine for me on Eclipse Kepler Windows 7 (64Bit)

screen shot of setting environment variable

I also put the cygwin bin directory at the front of my Windows PATH variable.

Full details here: http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.cdt.doc.user%2Fconcepts%2Fcdt_o_home.htm


You can try installing wascana. It automatically set up GNU compiler for you on Windows.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »