I need to compile a MD5.cc on Linux shell but I keep getting these errors :
user@ubuntu /Desktop/Hash12$ g++ -Wno-deprecated md5.cc -o md5
In file included from md5.cc:48:
md5.hh:48:21: error: fstream.h: No such file or directory
md5.hh:49:22: error: iostream.h: No such file or directory
In file included from md5.cc:48:
md5.hh:58: error: ‘istream’ has not been declared
md5.hh:60: error: ‘ifstream’ has not been declared
md5.hh:60: error: ‘void MD5::update(int&)’ cannot be overloaded
md5.hh:58: error: with ‘void MD5::update(int&)’
md5.hh:66: error: expected `)' before ‘&’ token
md5.hh:68: error: expected `)' before ‘&’ token
md5.hh:73: error: ISO C++ forbids declaration of ‘ostream’ with no type
md5.hh:73: error: ‘ostream’ is neither function nor member function; cannot be declared friend
md5.hh:73: error: expected ‘;’ before ‘&’ token
md5.cc: In member function ‘void MD5::update(unsigned char*, unsigned int)’:
md5.cc:78: error: ‘cerr’ was not declared in this scope
md5.cc:78: error: ‘endl’ was not declared in this scope
md5.cc: At global scope:
md5.cc:140: error: variable or field ‘update’ declared void
md5.cc:140: error: ‘istream’ was not declared in this scope
Anyone have any idea what I need to do to compile successfully? Thanks alot!