[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

C++ support




On Tue, 23 Feb 1999, erik.ivanenko wrote:

> A long time ago, I provided C++ support for the i386ex BSP.
> 
> I recall that the file rtems-ctor.cc was once located in the startup/
> directory of the BSP.  I also recall that the linkcmds script has
> sections  for C-TORS and D-TORS, but the Makefile is void of cc file
> use.   I cannot remember how to provide C++ support anymore.
> 
> Any help would be most appreciated.

Now all you should have to do is make sure the ctors and dtors section are
in your linkcmds.  The file rtems-ctor.cc should only be needed on non-GNU
toolsets or the unix port.  The constructors are supposed to be invoked
via the shared main or the ELF magic now.

> BTW: Has the "ostream::operator <<" been implemented for targets yet?

Built with egcs all the time along with the STL. :)

The places to look at for examples are librtems++, the cdtest, and the
test for librtems++.

I do believe there is still a problem with how many times global
constructors/destructors are invoked.

--joel