Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run a Simple C Program in Eclipse IDE

I've downloaded Eclipse C/C++ IDE . I need to run a simple c program in this(To print welcome).

While trying to run the program its popping up an error message like "Launch failed: Binary not found" .

Need i install any compiler package. ?

Please help me to do this.

like image 201
Thomas Anderson Avatar asked Oct 21 '10 05:10

Thomas Anderson


People also ask

How do you do C in Eclipse?

Launch Eclipse → Help → Install New Software → In "Work with" field, pull down the drop-down menu and select "Kepler - http://download.eclipse.org/releases/kepler" (or juno for Eclipse 4.2; or helios for Eclipse 3.7). In "Name" box, expand "Programming Language" node ⇒ Check "C/C++ Development Tools" ⇒ "Next" ⇒ ...

How do I start a new C project in Eclipse?

Create a new projectGo to Window → Open perspective → Other, select C/C++, and click OK. Go to File → New → C Project, and choose a name for the project (for example, Greeting ). Click Finish to accept all defaults.

What C compiler does Eclipse use?

Eclipse CDT uses C/C++ Compiler. Hence before we can start using Eclipse CDT for C/C++ development, we need to have a proper GCC compiler on our system. We can either have 'MinGW' or 'Cygwin' compiler on our machine that will be used by eclipse.


1 Answers

Yes, you have to install a compiler, Eclipse is only an IDE. You can get MinGW here.

like image 123
Corey Avatar answered Oct 04 '22 16:10

Corey