Path: utzoo!attcan!uunet!husc6!rutgers!galaxy!andromeda.rutgers.edu!dave From: dave@andromeda.rutgers.edu.rutgers.edu (Dave Bloom) Newsgroups: comp.lang.c++ Subject: CC won't init static!!!?! Message-ID: <1035@galaxy> Date: 17 Nov 88 21:39:38 GMT Sender: news@galaxy Reply-To: dave@andromeda (Dave Bloom) Organization: Rutgers University, Newark, NJ Lines: 27 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 > > 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/ |