Thanks for your interest in this, much appreciated. The problem
> In the interest of closure, can you confirm (from the comment you made in
> another thread), that this now works for you after changing the stream open
> call to be:
>
> std::ofstream strm("test.gz", std::ios_base::out | std::ios_base::binary);
>
> I know that it works for me when I tried it.
persists, the written file can not be decompressed, I have worked my
way around the problem, so it's not a issue for me anymore, but I
would be happy to help track it down. I think it's very strange you
can run without problems.