This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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 .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]