[uClibc]more errors doing C++ with uClibc
Fabio Parodi
fabio.parodi at fredreggiane.com
Tue Aug 28 17:08:51 UTC 2001
The following code produces a segmentation fault when linked with uClibc:
#include "stdio.h"
class A {
public: virtual void hello() { printf("hello from A\n"); };
};
A g;
void main() {
A *a;
g.hello(); // this works because the compiler knows A::hello()
a = &g;
a->hello(); // this does not work
}
I suppose there is something with static object initialization.
Is there anybody with the same problem?
Fabio Parodi
More information about the uClibc
mailing list