[uClibc]Constructor bug?
rich_wilson at agilent.com
rich_wilson at agilent.com
Wed Aug 7 22:34:18 UTC 2002
I seem to have a problem with constructors for global objects not being
called. I'm using power-pc. I have uClibc version 0.9.12.
A program which demonstrates the problem is:
=========================================
#include <stdio.h>
class xx
{
public:
xx() { printf("This is xx constructor\n"); }
};
xx xxs;
main()
{
printf("this is main\n");
}
=========================================
Using the default libc, this program prints
This is xx constructor
this is main
but when recompiled with uClibc, it prints only
this is main
Since I just subscribed to this list 2 minutes ago, I don't know if
this has been a topic in the recent past, or if there's another
way I should report this.
Rich
Rich Wilson
Agilent Technologies
425-335-2245
rich_wilson at agilent.com
More information about the uClibc
mailing list