Note that endl includes an implicit flush, so this isn't really news. Buffered I/O is buffered I/O and you should never write code that depends on buffered I/O being output before an explicit flush.
By the way, IIRC, fflush(stdout) should work for stdio.h I/O. /s/ Adam On Sat, Apr 24, 2010 at 4:51 PM, Danny Price <deepblue...@googlemail.com> wrote: > > On 24 Apr 2010, at 22:22, Robert Hairgrove wrote: > > This is also an issue in non-Qt apps. Just change this line: > std::cout << "test"; > to this: > std::cout << "test" << std::endl; > > On some platforms (*nix, I think) you need to do this in order to keep > the next output from overwriting the line "test". > > Thanks it now works! The CONFIG += console line appears to have no effect on > OSX either way. I suppose it's really for Windows? > I've not been able to get printf to work though, even with a '\n'. > > _______________________________________________ > Qt-creator mailing list > Qt-creator@trolltech.com > http://lists.trolltech.com/mailman/listinfo/qt-creator > > > _______________________________________________ > Qt-creator mailing list > Qt-creator@trolltech.com > http://lists.trolltech.com/mailman/listinfo/qt-creator > > _______________________________________________ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator