[uClibc]The constructor of global variable cann't be executed in C++

Erik Andersen andersen at codepoet.org
Thu Nov 15 09:14:36 UTC 2001


On Thu Nov 15, 2001 at 03:55:36PM +0800, kjlin wrote:
> Hi all,
> 
> I am using uclinux-2.4.1+MIPS and compiler is gcc-2.96 20000731.
> All the APs which written by C code are executed very well in my uclinux+MIPS.
> Howerer, the APs made by C++ are not so fine.
> The C++ problem is that the constructor of a global object will not be executed,
> but the constructor of a local object is executed normally.

I just put in some untested support for global constructors and
destructors in uClibc/libc/sysdeps/linux/mipsel/crt0.c
Could you check is that helps?

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--





More information about the uClibc mailing list