C++ iostream only working in Init, not in other RTEMS Tasks

Sebastian Huber sebastian.huber at embedded-brains.de
Tue May 2 08:03:31 UTC 2017


On 02/05/17 09:35, Chris Coppens wrote:
> Hello,
>
> In our RTEMS application C++ iostream (e.g. "cout") is only working in the “Init” function?
> If I use “cout” in a RTEMS Task other than Init, no output is shown in the console.
> Any idea why this is happening?

The C++ library uses thread-local standard IO streams (Newlib feature) 
for the global IO stream objects. I am not sure how to fix this 
properly, but I guess a RTEMS-specific change in the libstdc++ would be 
necessary.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the users mailing list