[uClibc]R: c++ and uclibc

Fabio Parodi fabio.parodi at fredreggiane.com
Tue Sep 11 06:22:37 UTC 2001


Hi Eraldo,

My architecture is i386 but I think there is some similarity with ARM.

> a) static constructors do not work

uClibc does not manage to call constructors and destructors of global
objetcs.
Erik Andersen told me this is a known problem and he will solve it in few
days.

> b) virtual functions do not work

On my system, virtual functions do work. At least, they work if the object
is
created at runtime and constructor is properly called. Virtual functions do
not
work on global objects, since the constructor has not been called (pointer
to
virtual function table is 0).

> c) iostreams in libstdc++ do not work

iostreams and libstdc++ do not work. I did not even try to compile libstdc++
against uClibc. If you do something with the c++ standard library please
tell
me, I am very interested and willing to contribuite.


Fabio


> -----Messaggio originale-----
> Da: eraldo_silveira at zipmail.com.br
> [mailto:eraldo_silveira at zipmail.com.br]
> Inviato: martedì 11 settembre 2001 5.49
> A: fabio.parodi at fredreggiane.com
> Oggetto: c++ and uclibc
>
>
> Hi Fabio,
>
> I read the discussion about C++ and uclibc in the mailing list.
> I am working with uclinux, uclibc , C++ in a arm7tdmi board. To
> compile a C++ program I use crt0.o and classes seems to work but
> with the following restrictions:
>
> Could you please tell me with a bit more details what do you did
> to solve these problems?
>
>       Regards,
>           Eraldo S.Silva
>
>
>
> -------------------------------------------------------------------
> http://www.amelia.com.br - O site de compras do Grupo Pão de Açúcar
>
>
>






More information about the uClibc mailing list