tonghe90 / textspotter

324 stars 112 forks source link

Therer are many errors about "at_layer.cpp" and other layers #3

Closed liuxi2018 closed 6 years ago

liuxi2018 commented 6 years ago

Hi He: I git clone your code, when I make your code, we encounter many errors. Is the code you have released is incomplete or other reasons? Some of the errors are as follows:

src/caffe/layers/at_layer.cpp:18:20: error: request for member ‘output_h’ in ‘param’, which is of non-class type ‘const int’ outputH = param.output_h(); ^ src/caffe/layers/at_layer.cpp:20:12: error: request for member ‘has_output_w’ in ‘param’, which is of non-class type ‘const int’ if (param.has_output_w()) { ^ src/caffe/layers/at_layer.cpp:21:21: error: request for member ‘output_w’ in ‘param’, which is of non-class type ‘const int’

/usr/include/c++/5/bits/stl_vector.h:303:7: note: candidate expects 3 arguments, 5 provided /usr/include/c++/5/bits/stl_vector.h:264:7: note: candidate: std::vector<_Tp, _Alloc>::vector(const allocator_type&) [with _Tp = int; _Alloc = std::allocator; std::vector<_Tp, _Alloc>::allocator_type = std::allocator] vector(const allocator_type& __a) _GLIBCXX_NOEXCEPT ^ /usr/include/c++/5/bits/stl_vector.h:264:7: note: candidate expects 1 argument, 5 provided /usr/include/c++/5/bits/stl_vector.h:253:7: note: candidate: std::vector<_Tp, _Alloc>::vector() [with _Tp = int; _Alloc = std::allocator]

tonghe90 commented 6 years ago

Hi @liuxi2018 , is the Makefile.config contain CUSTOM_CXX := g++ -std=c++11?

donglin8506 commented 5 years ago

Very useful,Thanks very much !@tonghe90

Tsui-Xianjun commented 5 years ago

how the question to be solved?