Xref: utzoo comp.lang.c++:5462 comp.sys.hp:3419 Path: utzoo!attcan!utgpu!watmath!iuvax!rutgers!columbia!cs!beshers From: beshers@cs.cs.columbia.edu (Clifford Beshers) Newsgroups: comp.lang.c++,comp.sys.hp Subject: Re: problems building cfront 2.0 Message-ID: Date: 10 Nov 89 03:52:59 GMT References: <995@mit-amt.MEDIA.MIT.EDU> Sender: beshers@cs.columbia.edu Followup-To: comp.lang.c++ Organization: Columbia University Computer Science Lines: 32 In-reply-to: peter@mit-amt.MEDIA.MIT.EDU's message of 10 Nov 89 00:48:43 GMT In article <995@mit-amt.MEDIA.MIT.EDU> peter@mit-amt.MEDIA.MIT.EDU (Peter Schroeder) writes: #include main() { cout << "hello world\n"; } and #include #include main() { cout << "hello world\n"; exit( 0 ); // <- this line makes all the difference } The first program does not print anything, the second program runs just fine! I discovered this when trying to figure out why some of the demos failed. Since calling exit will call global destructors, I think it's problem with the i/o buffer not being flushed correctly on a normal exit. -- ----------------------------------------------- Cliff Beshers Columbia University Computer Science Department beshers@cs.columbia.edu