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
Martin v. Löwis writes:
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
Matthias Klose wrote:
bug-171561.cc:14: `bin' is not a member of type `std::basic_ioschar,
std::char_traitschar '
[...]
std::ifstream f (argv[1], ios::bin | std::ios::in);
What gcc is that? I get
a.c:14: `ios' undeclared (first use this function)
If I fix this to read std::ios::binary, as it
3 matches
Mail list logo