I need to link my C++ programs against a couple shared libraries which generate way too much output to std::cout and std::cerr rendering them both
std::cout
std::cerr
Apparently, freopen can do that.