views:

77

answers:

4

Hi,

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?

+1  A: 

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.

Jay
+1  A: 

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.

Caladain
Bloodshed hasn't been updated in years, though...
luiscubal
But it still works :-D
Caladain
Bloodshed works, but there are better free IDEs out there. If you're not gonna go for VC++, I'd recommend Code::Blocks. It's free, updated regularly, and supports compilers other than GCC if you want to switch.
Maulrus
@Maulrus - Fair point. It's been years since i used Bloodshed..i moved to Visual Studio for windows and Eclipse/Vi for linux.
Caladain
A: 

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.

soru
A: 

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

Kane