[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#171561: help needed with Debian report -- forwarded message from Francesco Potorti`



Matthias Klose wrote:
bug-171561.cc:14: `bin' is not a member of type `std::basic_ios<char, std::char_traits<char> >'
[...]
  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 should read in C++, I get a complaint that read expects a char*, not a double*. If I fix that as well (by adding a reinterpret_cast), the program compiles fine.

Regards,
Martin




Reply to: