This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: More strange things with Hello gcc-3.0.4
- From: Loren James Rittle <rittle at latour dot rsch dot comm dot mot dot com>
- To: nbecker at hns dot com
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 28 Mar 2002 16:00:41 -0600 (CST)
- Subject: Re: More strange things with Hello gcc-3.0.4
Not a bug.
>While looking at strace, I see that for some reason on gcc-3.0.4 Linux
>there is no buffering of std::cout.
Please refer to Stroustrup or the standard text of C++98 to learn
the correct way that you can change your program to avoid this
behavior. The thing you want is to disconnect stdio from iostream IO.
std::ios::sync_with_stdio (false);
Regards,
Loren
You could also read the FAQ for libstdc++-v3, ./docs/html/27_io/howto.html .