-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile error #6
Comments
umm.. that is interesting
and try again? |
I tried it, but it does not work! |
got the same error? |
yes, the same error! |
On my ubuntu is ok
|
I had same problem, but I solved by changing bool operator<(DATA data) I hope it will help you |
When I complie caffe, I get some error, the output information is list bellow! Can you help me?
#######################################################################
In file included from /usr/include/c++/4.8/algorithm:62:0,
from /home/zouhongwei/workspce/caffe-yolo-9000/include/caffe/blob.hpp:4,
from /home/zouhongwei/workspce/caffe-yolo-9000/include/caffe/caffe.hpp:7,
from /home/zouhongwei/workspce/caffe-yolo-9000/examples/yolo_9000_test/netforward.cpp:1:
/usr/include/c++/4.8/bits/stl_algo.h: In instantiation of ‘_RandomAccessIterator std::__unguarded_partition(_RandomAccessIterator, _Ra ndomAccessIterator, const _Tp&) [with _RandomAccessIterator = yolo_v2::DATA*; _Tp = yolo_v2::DATA]’:
/usr/include/c++/4.8/bits/stl_algo.h:2283:70: required from ‘_RandomAccessIterator std::__unguarded_partition_pivot(_RandomAccessIte rator, _RandomAccessIterator) [with _RandomAccessIterator = yolo_v2::DATA*]’
/usr/include/c++/4.8/bits/stl_algo.h:2315:54: required from ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator , _Size) [with _RandomAccessIterator = yolo_v2::DATA*; _Size = long int]’
/usr/include/c++/4.8/bits/stl_algo.h:5461:36: required from ‘void std::sort(_RAIter, RAIter) [with RAIter = yolo_v2::DATA*]’
/home/zouhongwei/workspce/caffe-yolo-9000/examples/yolo_9000_test/yolo_v2_output.h:97:51: required from ‘std::vector<yolo_v2::DATA> yolo_v2::getResult(std::vector&, std::vector&, int, float, float) [with int OBJECT_NUM = 5; int SIDE = 13]’
/home/zouhongwei/workspce/caffe-yolo-9000/examples/yolo_9000_test/netforward.cpp:86:86: required from here
/usr/include/c++/4.8/bits/stl_algo.h:2245:19: error: passing ‘const yolo_v2::DATA’ as ‘this’ argument of ‘bool yolo_v2::DATA::operator <(yolo_v2::DATA)’ discards qualifiers [-fpermissive]
while (__pivot < *__last)
^
make[2]: *** [examples/CMakeFiles/netforward.dir/yolo_9000_test/netforward.cpp.o] Error 1
make[1]: *** [examples/CMakeFiles/netforward.dir/all] Error 2
make: *** [all] Error 2
######################################################################
The text was updated successfully, but these errors were encountered: