Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » How to make C Program output appear in Console Tab
How to make C Program output appear in Console Tab [message #171884] Fri, 30 June 2006 16:04 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Newbie
Next Topic:CDT 3.1.0 Now Available
Goto Forum:
  


Current Time: Thu Dec 26 18:35:40 GMT 2024

Powered by FUDForum. Page generated in 0.03867 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top