Compiling dbscan... make[1]: Entering directory `/tmp/larcv/app/dbscan' << compiling dbscanDict.cxx >> << compiling DBSCANAlgo.cxx >> In file included from /usr/include/c++/4.8/algorithm:62:0, from DBSCANAlgo.cxx:3: /usr/include/c++/4.8/bits/stl_algo.h: In instantiation of ‘_RandomAccessIterator std::__unguarded_partition(_RandomAccessIterator, _RandomAccessIterator, const _Tp&, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Tp = std::pair; _Compare = dbscan::mycompare_t]’: /usr/include/c++/4.8/bits/stl_algo.h:2296:78: required from ‘_RandomAccessIterator std::__unguarded_partition_pivot(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Compare = dbscan::mycompare_t]’ /usr/include/c++/4.8/bits/stl_algo.h:2337:62: required from ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Size = long int; _Compare = dbscan::mycompare_t]’ /usr/include/c++/4.8/bits/stl_algo.h:5499:44: required from ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator*, std::vector > >; _Compare = dbscan::mycompare_t]’ DBSCANAlgo.cxx:265:60: required from here /usr/include/c++/4.8/bits/stl_algo.h:2263:35: error: no match for call to ‘(dbscan::mycompare_t) (std::pair&, const std::pair&)’ while (__comp(*__first, __pivot)) ^ DBSCANAlgo.cxx:9:10: note: candidate is: struct mycompare_t { ^ DBSCANAlgo.cxx:10:10: note: bool dbscan::mycompare_t::operator()(std::pair&, std::pair&) bool operator() ( std::pair& lhs, std::pair& rhs ) { ^ DBSCANAlgo.cxx:10:10: note: no known conversion for argument 2 from ‘const std::pair’ to ‘std::pair&’ In file included from /usr/include/c++/4.8/algorithm:62:0, from DBSCANAlgo.cxx:3: /usr/include/c++/4.8/bits/stl_algo.h:2266:34: error: no match for call to ‘(dbscan::mycompare_t) (const std::pair&, std::pair&)’ while (__comp(__pivot, *__last)) ^ DBSCANAlgo.cxx:9:10: note: candidate is: struct mycompare_t { ^ DBSCANAlgo.cxx:10:10: note: bool dbscan::mycompare_t::operator()(std::pair&, std::pair&) bool operator() ( std::pair& lhs, std::pair& rhs ) { ^ DBSCANAlgo.cxx:10:10: note: no known conversion for argument 1 from ‘const std::pair’ to ‘std::pair&’ make[1]: *** [/tmp/larcv/build/dbscan/DBSCANAlgo.o] Error 1 make[1]: Leaving directory `/tmp/larcv/app/dbscan' make: *** [obj] Error 2