🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Mary Ann Brennan Wed, 09 Sep 1992 14:57
Re: using cout in a constructor SUMMARY
#228
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads