[uClinux-dev] The constructor of global variable cann't be executed in C++

Erik Andersen andersen at codepoet.org
Thu Nov 15 04:16:55 EST 2001


On Thu Nov 15, 2001 at 03:47:47PM +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 modified uClibc/libc/sysdeps/linux/mipsel/crt0.c in CVS
to add support for global constructors and destructors.

Try again?

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
This message resent by the uclinux-dev at uclinux.org list server http://www.uClinux.org/



More information about the uClinux-dev mailing list