public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] uSTL hello world
@ 2009-08-28 15:22 John Dallaway
  2009-09-01  8:36 ` [ECOS] " cetoni GmbH - Uwe Kindler
  0 siblings, 1 reply; 14+ messages in thread
From: John Dallaway @ 2009-08-28 15:22 UTC (permalink / raw)
  To: Uwe Kindler; +Cc: eCos Discussion

Hi Uwe

There seems to be a problem with the uSTL hello world example given in
the uSTL documentation. The code produces no output. However, if I add a
printf() call after the cout.flush(), then I see _both_ messages.

This is not a case of printf() flushing the output - I can observe the
output from cout on the diagnostics channel _before_ the call to
printf() is made. In fact, if I move the printf() call to the start of
main(), then everything still works.

eCos was configured with default template, pc_i82559 target, ustl and
fileio packages added, no optimization. Debugging via RedBoot over ethernet.

Does the hello world example work unmodified on your own hardware platform?

John Dallaway

--cut here--

#include <ustl.h>
//#include <stdio.h>
using namespace ustl;

int main (int argc, char* argv[])
{
    cout << "Hello world!\n";
    cout.flush();
//    printf("Hello printf!\n");
    return EXIT_SUCCESS;
}


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2009-09-29 15:36 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-28 15:22 [ECOS] uSTL hello world John Dallaway
2009-09-01  8:36 ` [ECOS] " cetoni GmbH - Uwe Kindler
2009-09-01  9:03   ` John Dallaway
2009-09-01 12:22     ` cetoni GmbH - Uwe Kindler
2009-09-01 13:28   ` John Dallaway
2009-09-08 15:14     ` cetoni GmbH - Uwe Kindler
2009-09-08 15:59       ` John Dallaway
2009-09-09  7:00         ` cetoni GmbH - Uwe Kindler
2009-09-09 11:55           ` John Dallaway
2009-09-10  0:32             ` Jonathan Larmour
2009-09-11 19:25               ` Bart Veer
2009-09-12  2:49                 ` Jonathan Larmour
2009-09-29 14:28                   ` Bart Veer
2009-09-29 15:36                     ` Jonathan Larmour

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).