[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Another C++ help is needed



Hi,

I intend to package Mauve[1] which requires to package some
predependencies first.  I managed to package libMuscle in Git[2] which
is needed to package libMems which is also in Git[3].  When I try to
build libmems I'm running into errors I have no idea how to deal with
them:

...
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -D_FORTIFY_SOURCE=2 -O2 -funroll-loops -fomit-frame-pointer -ftree-vectorize -I/usr/include/libGenome-1.3 -I/usr/include/libMUSCLE-3.7 -Wno-dep
In file included from /usr/include/c++/4.9/algorithm:62:0,
                 from ../libMems/AbstractMatch.h:18,
                 from ../libMems/SparseAbstractMatch.h:18,
                 from ../libMems/GappedAlignment.h:18,
                 from ../libMems/GappedAligner.h:17,
                 from ../libMems/Aligner.h:18,
                 from Aligner.cpp:9:
/usr/include/c++/4.9/bits/stl_algo.h: In instantiation of 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<mems::LabeledMem*, std::vector<mems::Labeled
Aligner.cpp:489:47:   required from here
/usr/include/c++/4.9/bits/stl_algo.h:4716:78: error: no matching function for call to '__gnu_cxx::__ops::_Iter_comp_iter<mems::LabeledMemComparator>::_Iter_comp_iter(__gnu_cxx::__ops::_Iter_c
       std::__sort(__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp));
                                                                              ^
/usr/include/c++/4.9/bits/stl_algo.h:4716:78: note: candidates are:
In file included from /usr/include/c++/4.9/bits/stl_algobase.h:71:0,
                 from /usr/include/c++/4.9/bits/char_traits.h:39,
                 from /usr/include/c++/4.9/string:40,
                 from /usr/include/libGenome-1.3/libGenome/gnSequence.h:22,
                 from ../libMems/Aligner.h:16,
                 from Aligner.cpp:9:
/usr/include/c++/4.9/bits/predefined_ops.h:114:7: note: __gnu_cxx::__ops::_Iter_comp_iter<_Compare>::_Iter_comp_iter(_Compare) [with _Compare = mems::LabeledMemComparator]
       _Iter_comp_iter(_Compare __comp)
       ^
/usr/include/c++/4.9/bits/predefined_ops.h:114:7: note:   no known conversion for argument 1 from '__gnu_cxx::__ops::_Iter_comp_iter<mems::LabeledMemComparator>' to 'mems::LabeledMemComparato
/usr/include/c++/4.9/bits/predefined_ops.h:110:12: note: __gnu_cxx::__ops::_Iter_comp_iter<mems::LabeledMemComparator>::_Iter_comp_iter(__gnu_cxx::__ops::_Iter_comp_iter<mems::LabeledMemCompa
     struct _Iter_comp_iter
            ^
/usr/include/c++/4.9/bits/predefined_ops.h:110:12: note:   no known conversion for argument 1 from '__gnu_cxx::__ops::_Iter_comp_iter<mems::LabeledMemComparator>' to '__gnu_cxx::__ops::_Iter_
In file included from /usr/include/c++/4.9/algorithm:62:0,
                 from ../libMems/AbstractMatch.h:18,
                 from ../libMems/SparseAbstractMatch.h:18,
                 from ../libMems/GappedAlignment.h:18,
                 from ../libMems/GappedAligner.h:17,
                 from ../libMems/Aligner.h:18,
                 from Aligner.cpp:9:
/usr/include/c++/4.9/bits/stl_algo.h:1962:5: error:   initializing argument 3 of 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_
     __sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
     ^
/usr/include/c++/4.9/bits/stl_algo.h: In instantiation of 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<mems::UngappedLocalAlignment<mems::HybridAbs
Aligner.cpp:979:40:   required from here
/usr/include/c++/4.9/bits/stl_algo.h:4716:78: error: no matching function for call to '__gnu_cxx::__ops::_Iter_comp_iter<mems::MatchLeftEndComparator>::_Iter_comp_iter(__gnu_cxx::__ops::_Iter
       std::__sort(__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp));
...


Any hint would be more than welcome.

Kind regards

        Andreas.

[1] http://darlinglab.org/mauve/
[2] git://anonscm.debian.org/debian-med/libmuscle.git
[3] git://anonscm.debian.org/debian-med/libmems.git

-- 
http://fam-tille.de


Reply to: