Flush means clearing all the buffers for a stream.
I am trying same, http://www.linuxforums.org/forum/suse-linux/135465-gcov-g.html Code from the link, #include <iostream> …