🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.help
Article #228

Re: using cout in a constructor SUMMARY

#228
From: Mary Ann Brennan
Date: Wed, 09 Sep 1992 14:57
15 lines
1005 bytes
On 8 Sep 92 20:37:39 GMT, I posted a question about why using cout in a
constructor caused a core dump when a static global was initialized, noting
that printf produced the intended result without problems.

I have learned that the order of initialization of globals is not yet
well defined, I should be using the 2nd edition of Stroustrup's
"The C++ Programming Language" not my old copy, and that I should get
a newer version of gcc (2.2.2) and g++ on which my example works.

Thanks to Ed Barton and Aksnes Knut-Havar for their quick and helpful
responses.

Mary Ann Brennan
brennan@seismo.css.gov
Technical Details
Message-ID: <51203@seismo.CSS.GOV>
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!gatech!purdue!bu.edu!lll-winken!seismo!brennan

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!gatech!purdue!bu.edu!lll-winken!seismo!brennan
From: brennan@seismo.CSS.GOV (Mary Ann Brennan)
Newsgroups: gnu.g++.help
Subject: Re: using cout in a constructor SUMMARY
Message-ID: <51203@seismo.CSS.GOV>
Date: 9 Sep 92 14:57:25 GMT
Sender: usenet@seismo.CSS.GOV
Organization: Center for Seismic Studies, Arlington, VA
Lines: 15