What do I have to do to use iostream in rtems

Rosimildo da Silva rdasilva at connecttel.com
Fri Jul 27 01:01:52 UTC 2001


From: <peter.o.mueller at gmx.de>
To: <rtems-users at oarcorp.com>
Sent: Thursday, July 26, 2001 11:26 AM
Subject: What do I have to do to use iostream in rtems


> Hi all,
>
> I want to use <iostream.h> in an application. The only test I found was
> cdtest. And there it was not used because RTEMS_TEST_IO_STREAM was not
set.
>

This macro is only used in this test program.


> If I set this flag there was a linker error about undefined reference to
> 'endl(ostream &)'
>
> I assume I have to configure rtems to provide iostream stuff. How can I do
> this? Is it possible for all targets?
>

It is becuase you are using "gcc" as a linker. You *must* use "g++" to link
C++ applications.

Rosimildo.







More information about the users mailing list