开发者

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.开发者_运维百科


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


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.


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.

How to run a Simple C Program in Eclipse IDE


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.


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++

How to run a Simple C Program in Eclipse IDE

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜