dave@andromeda.rutgers.edu.rutgers.edu (Dave Bloom) (11/18/88)
Hi there folks. I'm trying to compile AT&T's C++ compiler (ver 1.2.1) on a 3B15 (SysVR2) and a Pyramid, where I have the same problem. The problem is this: cfront, munch and libC.a are compliled without a hitch, but it seems that when I try to compile a program with a global static class object, it never gets initialized. For example if I try compiling: > #include <stream.h> > > main() > { > cout << "Hi there!\n"; > } everything is fine, but if I try and run it I get a core dump, because cout was not initialized before main() was run, and hence is not bound to stdout. Has anyone seen this problem, and does anyone have the fix????? Thanx. _______________________________________________________________________________ rutgers\ | Dave Bloom galaxy >!andromeda!dave -or- dave@andromeda.rutgers.edu | Work: (201)648-5085 pyramid/ |