Bonjour à tous,

j'ai un problème:
Je suis en train de recompiler des programmes c++ que j'ai implémentés sous Linux/fedora il y a déjà quelques années. Actuellement, je travaille sur une autre machine et une autre distribution Linux/ubuntu.

J'ai installé les bibliothéques nécessaires: STL et BoostGraph

mais le compilateur me génère des erreurs que je comprends pas. Voici le début du message d'erreur que j'ai:


Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
 
 
In file included from main.cpp:4:0:
struct_graphe.h: In member function ‘void struct_graphe::detection_cycle_sous_graphe(std::fstream*, int, std::map<int, int>*)’:
struct_graphe.h:459:59: error: no matching function for call to ‘std::set<boost::range_detail::integer_iterator<long unsigned int> >::insert(std::set<boost::range_detail::integer_iterator<long unsigned int> >::iterator, boost::iterators::detail::iterator_facade_base<boost::range_detail::integer_iterator<long unsigned int>, long unsigned int, boost::iterators::random_access_traversal_tag, long unsigned int, long int, false, false>::reference)’
            liste_noeuds2.insert(liste_noeuds2.end(), *v_it);
                                                           ^
In file included from /usr/include/c++/5/set:61:0,
                 from typo.h:4,
                 from typo.cpp:2,
                 from regle.h:1,
                 from regle.cpp:1,
                 from ensemble_regles.h:1,
                 from ensemble_regles.cpp:1,
                 from main.cpp:1:
/usr/include/c++/5/bits/stl_set.h:482:7: note: candidate: std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(const value_type&) [with _Key = boost::range_detail::integer_iterator<long unsigned int>; _Compare = std::less<boost::range_detail::integer_iterator<long unsigned int> >; _Alloc = std::allocator<boost::range_detail::integer_iterator<long unsigned int> >; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind<_Key>::other>::const_iterator = std::_Rb_tree_const_iterator<boost::range_detail::integer_iterator<long unsigned int> >; std::set<_Key, _Compare, _Alloc>::value_type = boost::range_detail::integer_iterator<long unsigned int>]
       insert(const value_type& __x)
       ^
/usr/include/c++/5/bits/stl_set.h:482:7: note:   candidate expects 1 argument, 2 provided

Avez-vous des idées comment puis-je résoudre mon problème?
Merci