Sorry if this is not a bug, but I cannot find any way why it isn't.[...]
bin2a.cc: In function `int main(int, char**)': bin2a.cc:9: `cerr' undeclared (first use this function)
It is not a bug, cerr is really not a predefined identifier in C++. What you mean is std::cerr.
Regards, Martin