Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Hello world Console output
Hello world Console output [message #719810] Mon, 29 August 2011 05:47 Go to next message
Tony Greenleaf is currently offline Tony GreenleafFriend
Messages: 12
Registered: March 2011
Junior Member
I have managed to get the binaries installed in a simple hello world program. But i cannot get the text to display on the Console. The program compiles ok and runs. But it doesn't output.
Re: Hello world Console output [message #719835 is a reply to message #719810] Mon, 29 August 2011 07:22 Go to previous messageGo to next message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
http://wiki.eclipse.org/CDT/User/FAQ#Eclipse_console_does_not_show_output_on_Windows

Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: Hello world Console output [message #721154 is a reply to message #719835] Thu, 01 September 2011 03:46 Go to previous messageGo to next message
Tony Greenleaf is currently offline Tony GreenleafFriend
Messages: 12
Registered: March 2011
Junior Member
Have had a look at this thanks. But this seems to refer to printf but what about cout <<?

Do i need to include any binaries to my program to get
setvbuf(stdout, NULL, _IONBF, 0);
setvbuf(stderr, NULL, _IONBF, 0);
to work?
Re: Hello world Console output [message #721294 is a reply to message #721154] Thu, 01 September 2011 11:26 Go to previous message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
Does this help?
http://www.eggheadcafe.com/microsoft/C/35710240/c-analog-of-setvbuf-.aspx

If yes can you please update the Wiki entry.


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Previous Topic:Indexer fails to index my .h (using #define/#undef)
Next Topic:Build steps tab missing
Goto Forum:
  


Current Time: Thu Apr 25 20:57:27 GMT 2024

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

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

Back to the top