phash icon indicating copy to clipboard operation
phash copied to clipboard

more build errors

Open f1-outsourcing opened this issue 1 year ago • 0 comments

/home/software/phash/examples/imghash.cpp: In function ‘int main(int, char**)’: /home/software/phash/examples/imghash.cpp:215:45: error: no matching function for call to ‘std::basic_ofstream::basic_ofstream(const string&, std::_Ios_Openmode)’ ofstream ostrm(outfile, ios::out|ios::trunc); ^ /home/software/phash/examples/imghash.cpp:215:45: note: candidates are: In file included from /home/software/phash/examples/imghash.cpp:26:0: /usr/include/c++/4.8.2/fstream:640:7: note: std::basic_ofstream<_CharT, _Traits>::basic_ofstream(const char*, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits; std::ios_base::openmode = std::_Ios_Openmode] basic_ofstream(const char* __s, ^ /usr/include/c++/4.8.2/fstream:640:7: note: no known conversion for argument 1 from ‘const string {aka const std::basic_string}’ to ‘const char*’ /usr/include/c++/4.8.2/fstream:625:7: note: std::basic_ofstream<_CharT, _Traits>::basic_ofstream() [with _CharT = char; _Traits = std::char_traits] basic_ofstream(): __ostream_type(), _M_filebuf() ^ /usr/include/c++/4.8.2/fstream:625:7: note: candidate expects 0 arguments, 2 provided /usr/include/c++/4.8.2/fstream:599:11: note: std::basic_ofstream::basic_ofstream(const std::basic_ofstream&) class basic_ofstream : public basic_ostream<_CharT,_Traits> ^ /usr/include/c++/4.8.2/fstream:599:11: note: candidate expects 1 argument, 2 provided /home/software/phash/examples/imghash.cpp: In function ‘int read_filenames_from_dir(const boost::filesystem::path&, std::vectorboost::filesystem::path&)’: /home/software/phash/examples/imghash.cpp:241:14: error: expected unqualified-id before ‘&&’ token for (auto &&entry : fs::directory_iterator(dname)){ ^ /home/software/phash/examples/imghash.cpp:241:14: error: expected ‘;’ before ‘&&’ token /home/software/phash/examples/imghash.cpp:241:22: error: expected ‘;’ before ‘:’ token for (auto &&entry : fs::directory_iterator(dname)){ ^ /home/software/phash/examples/imghash.cpp:241:22: error: expected primary-expression before ‘:’ token /home/software/phash/examples/imghash.cpp:241:22: error: expected ‘)’ before ‘:’ token /home/software/phash/examples/imghash.cpp:241:22: error: expected primary-expression before ‘:’ token /home/software/phash/examples/imghash.cpp:241:22: error: expected ‘;’ before ‘:’ token /home/software/phash/examples/imghash.cpp:241:16: error: label ‘entry’ used but not defined for (auto &&entry : fs::directory_iterator(dname)){ ^ /home/software/phash/examples/imghash.cpp: In function ‘int find_stats(const std::vector&, double&, double&, double&, double&)’: /home/software/phash/examples/imghash.cpp:390:20: error: range-based ‘for’ loops are not allowed in C++98 mode for (double val : values){ ^

f1-outsourcing avatar Jan 14 '23 19:01 f1-outsourcing