ceclipse

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?


Solution

  • 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.