Thomas Anderson
Thomas Anderson

Reputation: 2067

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.

Upvotes: 11

Views: 64714

Answers (5)

Bhanupratap Singh
Bhanupratap Singh

Reputation: 111

You can make use of the documentation which comes along with the IDE.

Just on the start up window in Eclipse click Tutorials and then click on c/c++ development link and then read Before you Begin part.

Eclipse Help Guide

Upvotes: 2

Bhanupratap Singh
Bhanupratap Singh

Reputation: 111

Eclipse is an IDE.It will help you write applications in c/++,but it will not compile your program as Eclipse does not comes with a compiler pre-configured.

You need to install a compiler to run your application.

Eclipse is capable to use many c/c++ compilers,some are:

1.Cygwin

2.MingW

3.Gross

4.Microsoft Visual C++

List of c/c++ compilers which can be used in Eclipse

I would advise to install mingW OR Cygwin.

If you need more help on running a c/c++ application in Eclipse visit http://www.ibm.com/developerworks/opensource/library/os-ecc/?S_TACT=105AGX44&S_CMP=ART

Upvotes: 0

naikvikrant92
naikvikrant92

Reputation: 11

The program you write must be converted into respective binary which is to be run on that particular architecture.This process is carried out by the compiler as a result compiler is required for eclipse IDE to compile and link the code .

Various compilers are available such as Microsoft Visual C++ MinGW GCC or Cygwin GCC in the form of chaintools in eclipse so as to compile the code.

Upvotes: 0

Anil Vishnoi
Anil Vishnoi

Reputation: 1392

http://www.eclipse.org/cdt/

Look at the above link,you will get more idea,on how to do development using C/C++ using eclipse.

Upvotes: 5

Corey
Corey

Reputation: 3205

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

Upvotes: 7

Related Questions