Hello, I downloaded some image processing code that has been used successfully by others. I am working on a Linux network in a Unix command window. When I try to compile it I get a warning that some of the headers are "deprecated" and this is followed by a whole host of errors. Can anyone get me started on figuring out how to fix or get around this problem? Are the fact that the headers are "deprecated" related to the compilation errors?
I've included the warning and a few of the many error messages.
Thank you,Code:steve:mhoffman% g++ encode.cc In file included from /usr/local/include/c++/3.3.1/backward/iostream.h:31, from encode.cc:19: /usr/local/include/c++/3.3.1/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in secti on 18.104.22.168 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning us e -Wno-deprecated. In file included from coder.hh:37, from coeffset.hh:36, from encode.cc:22: BitIO.h: In member function `int BitIn::input_bit()': BitIO.h:37: error: no matching function for call to `std::basic_istream<char, std::char_traits<char> >::get(unsigned char&)' /usr/local/include/c++/3.3.1/bits/istream.tcc:514: error: candidates are: typename _Traits::int_type std::basic_istream<_CharT, _Traits>::get() [with _CharT = char, _Traits = std::char_traits<char>] /usr/local/include/c++/3.3.1/bits/istream.tcc:546: error: std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::get(_CharT&) [with _CharT = char, _Traits = std::char_traits<char>] /usr/local/include/c++/3.3.1/bits/istream.tcc:580: error: std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::get(_CharT*, int, _CharT) [with _CharT = char, _Traits = std::char_traits<char>]