hi all ,
while running gcc for md5 file i am getting errors as shown below
[root@localhost md5-cc]# gcc md5.cc
In file included from /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/backward/fstream.h:31,
from md5.hh:43,
from md5.cc:48:
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/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 section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
md5.cc: In member function ‘void MD5::update(std::istream&)’:
md5.cc:149: error: invalid conversion from ‘char*’ to ‘unsigned char*’
md5.cc:149: error: initializing argument 1 of ‘void MD5::update(unsigned char*, unsigned int)’
md5.cc: In member function ‘void MD5::update(std::ifstream&)’:
md5.cc:168: error: invalid conversion from ‘unsigned char*’ to ‘char*’
md5.cc:168: error: initializing argument 1 of ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::read(_CharT*, std::streamsize) [with _CharT = char, _Traits = std::char_traits<char>]’
i have no idea how to remove these errors.
please tell me how to remove these bugs..
waiting for response .
while running gcc for md5 file i am getting errors as shown below
[root@localhost md5-cc]# gcc md5.cc
In file included from /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/backward/fstream.h:31,
from md5.hh:43,
from md5.cc:48:
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/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 section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
md5.cc: In member function ‘void MD5::update(std::istream&)’:
md5.cc:149: error: invalid conversion from ‘char*’ to ‘unsigned char*’
md5.cc:149: error: initializing argument 1 of ‘void MD5::update(unsigned char*, unsigned int)’
md5.cc: In member function ‘void MD5::update(std::ifstream&)’:
md5.cc:168: error: invalid conversion from ‘unsigned char*’ to ‘char*’
md5.cc:168: error: initializing argument 1 of ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::read(_CharT*, std::streamsize) [with _CharT = char, _Traits = std::char_traits<char>]’
i have no idea how to remove these errors.
please tell me how to remove these bugs..
waiting for response .