How to install C compiler in Eclipse?

I installed the C / C ++ CDT version of Eclipse. After creating the HelloWorld.c file and getting the code there, I get the error message "Launch failed. Binary not found".

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

But badly he gets the same startup error with an error - any ideas what stage I forgot?

+5
source share
5 answers

Some things to check:
1.) MinGW tools are also installed. Make sure you have the C compiler and the Make program 2.) Check the environment variables. Make sure the compiler and Make are in the way.
3.) Eclipse - a temperamental beast from time to time, do not fall heart :-)
4.) If you are looking for a good IDE (not caring for ideological problems), maybe you should take a look at the Bloodshed C ++ IDE and Visual C ++ 2010 express (or what they call their free version).
5.) Check the options menu in Eclipse to make sure it searches for the correct environment variables to search for Path.

+3
source

IMHO, eclipse Windows - cygwin - , ​​ , mingw, .

http://www.cygwin.com/, , c:\cygwin. " ".

, "gcc", "binutils" "make" "devel".

c:\cygwin\bin Windows PATH.

+3

, Eclipse , gcc. - EasyEclipse, env.

+1

MinGW gcc CygWin gcc - ++ 2011, , . CygWin .., Eclipse.

C/++ Build → Environment CYGWIN_HOME. Eclipse Kepler Windows 7 (64Bit)

screen shot of setting environment variable

I also put the cygwin bin directory at the beginning 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

+1
source

You can try installing wascana . It automatically configures the GNU compiler for you on Windows.

0
source

All Articles