kasyoukin / caffe_ocr_for_linux

Other
73 stars 47 forks source link

编译报错 #37

Open panlanlan opened 6 years ago

panlanlan commented 6 years ago

### /usr/local/include/boost/system/error_code.hpp:233:21: error: looser throw specifier for ‘virtual const char boost::system::error_category::std_category::name() const’ virtual const char name() const BOOST_NOEXCEPT ^ /usr/include/c++/5/system_error:77:21: error: overriding ‘virtual const char std::_V2::error_category::name() const noexcept’ name() const noexcept = 0; ^ /usr/local/include/boost/system/error_code.hpp:243:37: error: looser throw specifier for ‘virtual std::error_condition boost::system::error_category::std_category::default_error_condition(int) const’ virtual std::error_condition default_error_condition( int ev ) const ^ /usr/include/c++/5/system_error:104:25: error: overriding ‘virtual std::error_condition std::_V2::error_category::default_error_condition(int) const noexcept’ default_error_condition(int i) const noexcept; ^ /usr/local/include/boost/system/error_code.hpp:245:21: error: looser throw specifier for ‘virtual bool boost::system::error_category::std_category::equivalent(int, const std::error_condition&) const’ virtual bool equivalent( int code, const std::error_condition & condition ) const ^ /usr/include/c++/5/system_error:107:14: error: overriding ‘virtual bool std::_V2::error_category::equivalent(int, const std::error_condition&) const noexcept’ equivalent(int __i, const error_condition& cond) const noexcept; ^ /usr/local/include/boost/system/error_code.hpp:247:21: error: looser throw specifier for ‘virtual bool boost::system::error_category::std_category::equivalent(const std::error_code&, int) const’ virtual bool equivalent( const std::error_code & code, int condition ) const ^ /usr/include/c++/5/system_error:110:14: error: overriding ‘virtual bool std::_V2::error_category::equivalent(const std::error_code&, int) const noexcept’ equivalent(const error_code& code, int i) const noexcept; ^ Makefile:601: recipe for target '.build_release/cuda/src/caffe/layers/DenseBlock_layer.o' failed make: [.build_release/cuda/src/caffe/layers/DenseBlock_layer.o] Error 1 make: ** Waiting for unfinished jobs.... tools/ocr_test.cpp: In function ‘void FindAllImages(const char, std::vector<std::cxx11::basic_string >&, bool)’: tools/ocr_test.cpp:174:27: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (ent = readdir(pDir)) ^ tools/ocr_test.cpp: In function ‘float GetCTCLoss(float*, int, int, int, const string&, const std::map<wchar_t, int>&)’: tools/ocr_test.cpp:221:14: warning: variable ‘status’ set but not used [-Wunused-but-set-variable] ctcStatus_t status = CTC::get_workspace_size(&len, ^ tools/ocr_test.cpp: In function ‘void test_ocr_english(const string&, const string&, const string&)’: tools/ocr_test.cpp:279:11: warning: unused variable ‘c’ [-Wunused-variable] wchar_t c = 0; ^ tools/ocr_test.cpp:359:95: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘size_t {aka long unsigned int}’ [-Wformat=] printf("[%d/%d]%s\n\torig result: %s\n",i+1,imgs.size(),imgs[i].c_str(), strpredict0.c_str()); ^ tools/ocr_test.cpp:359:95: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘std::vector<std::cxx11::basic_string >::size_type {aka long unsigned int}’ [-Wformat=] tools/ocr_test.cpp:325:6: warning: unused variable ‘nok_lexicon’ [-Wunused-variable] int nok_lexicon = 0; ^ tools/ocr_test.cpp:326:6: warning: unused variable ‘nok_nolexicon’ [-Wunused-variable] int nok_nolexicon = 0; ^ tools/ocr_test.cpp: In function ‘void test_ocr_chinese(const string&, const string&)’: tools/ocr_test.cpp:412:46: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘std::vector<std::__cxx11::basic_string >::size_type {aka long unsigned int}’ [-Wformat=] printf("labels:%d\n",alphabets.size()); ^ tools/ocr_test.cpp:422:11: warning: unused variable ‘c’ [-Wunused-variable] wchar_t c = 0; ^ tools/ocr_test.cpp:466:118: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘size_t {aka long unsigned int}’ [-Wformat=] printf("[%d/%d]%s[cost:%g ms]: %s\n", i + 1, imgs.size(), imgs[i].c_str(),timer.MilliSeconds(), strpredict0.c_str()); ^ tools/ocr_test.cpp:466:118: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘std::vector<std::__cxx11::basic_string >::size_type {aka long unsigned int}’ [-Wformat=] tools/ocr_test.cpp:431:6: warning: unused variable ‘nok_lexicon’ [-Wunused-variable] int nok_lexicon = 0; ^ tools/ocr_test.cpp:432:6: warning: unused variable ‘nok_nolexicon’ [-Wunused-variable] int nok_nolexicon = 0; ^