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

Chris Johns chrisj at rtems.org
Tue May 2 22:47:48 UTC 2017

On 2/5/17 6:03 pm, Sebastian Huber wrote:
> 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.

Does a ticket exist for this? This should be fixed for 4.12.0 so please
set the milestone to 4.12.0 and blocker.


More information about the users mailing list