How to make C Program output appear in Console Tab [message #171884] |
Fri, 30 June 2006 16:04 |
Eclipse User |
|
|
|
Originally posted by: kidskc.yahoo.com
Hello,
I wrote a Small Sample C program (Hello World). When I compile it and run
the executable (by double clicking on .exe file), it opens a new windows
console and displays the 0utput and Vanishes. I have to put a 'sleep' at
the bottom of my program to make the windows console stay for a while.
How do I make the ourput appear in 'Console' tab in the Eclipse IDE?
I do see the output of makefile (when compiling) in the console tab.
I tries using 'run' option, it it just doesnt work. Couldnt get the
application to execute this way.
Any Help is appreciated.
Thanks,
Kalyan
|
|
|
Re: How to make C Program output appear in Console Tab [message #171924 is a reply to message #171884] |
Sat, 01 July 2006 08:02 |
Eclipse User |
|
|
|
Originally posted by: dmsubs.NOSPAM.consertum.com
Eclipse Newbie wrote:
> Hello,
>
> I wrote a Small Sample C program (Hello World). When I compile it and
> run the executable (by double clicking on .exe file), it opens a new
> windows console and displays the 0utput and Vanishes. I have to put a
> 'sleep' at the bottom of my program to make the windows console stay for
> a while.
>
> How do I make the ourput appear in 'Console' tab in the Eclipse IDE?
>
> I do see the output of makefile (when compiling) in the console tab.
>
> I tries using 'run' option, it it just doesnt work. Couldnt get the
> application to execute this way.
>
> Any Help is appreciated.
>
> Thanks,
> Kalyan
>
If you run it through Windows, then Eclipse has no knowledge of your
application.
You have two choices:
1. Run/Debug it through the (Eclipse) debugger. This is what you are
likely to want to do whilst developing your application. See Run->Run...
or Run->Debug... on the Eclipse menu bar.
2. Launch it as an external application. This is typically used when you
have a tool that you wish to run from within Eclipse. See Run->External
Tools...
HTH
--
Derek
|
|
|
Powered by
FUDForum. Page generated in 0.03867 seconds