Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 266
PassionateDeveloper Avatar asked Jul 13 '10 16:07

PassionateDeveloper


1 Answers

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.

like image 119
Caladain Avatar answered Sep 30 '22 11:09

Caladain