facebookarchive / C3D

C3D is a modified version of BVLC caffe to support 3D ConvNets.
Other
1.16k stars 507 forks source link

Make all fails at examples/mnist/convert_mnist_data.cpp #437

Open Anirudh58 opened 5 years ago

Anirudh58 commented 5 years ago

Running make all fails at this step.

I am running ubuntu 18.04, OpenCV 3. I have made all the required changed to the Makefile.config file. Please let me know if i am missing something.

examples/mnist/convert_mnist_data.cpp:31:47: error: no match for ‘operator<<’ (operand types are ‘std::basic_ostream’ and ‘std::ifstream {aka std::basic_ifstream}’) CHECK(label_file) << "Unable to open file " << label_file; ^ examples/mnist/convert_mnist_data.cpp:31:47: note: candidate: operator<<(int, int) examples/mnist/convert_mnist_data.cpp:31:47: note: no known conversion for argument 2 from ‘std::ifstream {aka std::basic_ifstream}’ to ‘int’ In file included from /usr/include/glog/logging.h:43:0, from examples/mnist/convert_mnist_data.cpp:11: /usr/include/c++/7/ostream:108:7: note: candidate: std::basic_ostream<_CharT, _Traits>::ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::ostream_type& (*)(std::basic_ostream<_CharT, _Traits>::ostream_type&)) [with _CharT = char; _Traits = std::char_traits; std::basic_ostream<_CharT, _Traits>::ostream_type = std::basic_ostream] operator<<(ostream_type& (*pf)(ostream_type&)) ^~~~ /usr/include/c++/7/ostream:108:7: note: no known conversion for argument 1 from ‘std::ifstream {aka std::basic_ifstream}’ to ‘std::basic_ostream::ostream_type& ()(std::basic_ostream::__ostream_type&) {aka std::basic_ostream& ()(std::basic_ostream&)}’ /usr/include/c++/7/ostream:117:7: note: candidate: std::basic_ostream<_CharT, _Traits>::ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::ios_type& (*)(std::basic_ostream<_CharT, _Traits>::ios_type&)) [with _CharT = char; _Traits = std::char_traits; std::basic_ostream<_CharT, _Traits>::ostream_type = std::basic_ostream; std::basic_ostream<_CharT, _Traits>::ios_type = std::basic_ios] operator<<(ios_type& (*pf)(ios_type&))

hali6779 commented 5 years ago

Hi, have u solve this problem? I have the same error.

rajanjitenpatel commented 5 years ago

Issue solved - Error: no match for ‘operator<<’ convert_mnist_data.cpp