Boost logo

Boost :

From: Bob Kenney (bob_at_[hidden])
Date: 2002-04-16 09:14:50


I'm trying to get the example in the documentation to compile, see
http://www.boost.org/libs/graph/example/connected_components.cpp but receive
the error message printed below.
I'm running this on the SGI using the MPRO7.3 compiler, can any one throw
any light on the possible problems. I've also tried substituting the line :
int num = connected_components(G, &component[0]);
from the example for the version on page 98 of the BGL book i.e.
int num = connected_components(G,
make_iterator_property_map(component.begin(), get(vertex_index, G ) ) );
But I achieve the same error.
any suggestions!
Regards
Bob

THE ERROR MESSAGE
cc-1262 CC: ERROR File =
/home/bob/utils_install/SGI/boost-1_26_0-SGI.OPT.MPRO7.3/boost/property_map.
hpp, Line = 339
  No instance of constructor

"boost::vec_adj_list_vertex_id_map<boost::detail::vertex_property_map
          <boost::adjacency_list<boost::vecS, boost::vecS,
boost::undirectedS,
          boost::property<boost::vertex_name_t, CGAL::Point_3<R>,
          boost::no_property>, boost::no_property, boost::no_property,
          boost::listS>, boost::vertex_index_t>::Property,
          boost::vec_adj_list_id_vertex_pa::bind<boost::vertex_index_t,
          boost::adjacency_list<boost::vecS, boost::vecS,
boost::undirectedS,
          boost::property<boost::vertex_name_t, CGAL::Point_3<R>,
          boost::no_property>, boost::no_property, boost::no_property,
          boost::listS>,

boost::detail::vertex_property_map<boost::adjacency_list<boost::vecS,
          boost::vecS, boost::undirectedS,
          boost::property<boost::vertex_name_t, CGAL::Point_3<R>,
          boost::no_property>, boost::no_property, boost::no_property,
          boost::listS>,

boost::vertex_index_t>::Property>::Vertex>::vec_adj_list_vertex_id_ma
          p" matches the argument list.

        const IndexMap& _id = IndexMap() )
                                       ^
          A template was detected during header processing.
            instantiation of class

"boost::iterator_property_map<std::vector<boost::default_
                      color_type,
                      std::allocator<boost::default_color_type>>::value_type
                      *,

boost::vec_adj_list_vertex_id_map<boost::detail::vertex_p
                      roperty_map<boost::adjacency_list<boost::vecS,
                      boost::vecS, boost::undirectedS,
                      boost::property<boost::vertex_name_t,
CGAL::Point_3<R>,
                      boost::no_property>, boost::no_property,
                      boost::no_property, boost::listS>,
                      boost::vertex_index_t>::Property,

boost::vec_adj_list_id_vertex_pa::bind<boost::vertex_inde
                      x_t, boost::adjacency_list<boost::vecS, boost::vecS,
                      boost::undirectedS,
                      boost::property<boost::vertex_name_t,
CGAL::Point_3<R>,
                      boost::no_property>, boost::no_property,
                      boost::no_property, boost::listS>,

boost::detail::vertex_property_map<boost::adjacency_list<
                      boost::vecS, boost::vecS, boost::undirectedS,
                      boost::property<boost::vertex_name_t,
CGAL::Point_3<R>,
                      boost::no_property>, boost::no_property,
                      boost::no_property, boost::listS>,
                      boost::vertex_index_t>::Property>::Vertex>,
                      boost::default_color_type, boost::default_color_type
&>"
                      at line 365
            instantiation of

"boost::iterator_property_map<std::vector<boost::default_
                      color_type,
                      std::allocator<boost::default_color_type>>::value_type
                      *,

boost::vec_adj_list_vertex_id_map<boost::detail::vertex_p
                      roperty_map<boost::adjacency_list<boost::vecS,
                      boost::vecS, boost::undirectedS,
                      boost::property<boost::vertex_name_t,
CGAL::Point_3<R>,
                      boost::no_property>, boost::no_property,
                      boost::no_property, boost::listS>,
                      boost::vertex_index_t>::Property,

boost::vec_adj_list_id_vertex_pa::bind<boost::vertex_inde
                      x_t, boost::adjacency_list<boost::vecS, boost::vecS,
                      boost::undirectedS,
                      boost::property<boost::vertex_name_t,
CGAL::Point_3<R>,
                      boost::no_property>, boost::no_property,
                      boost::no_property, boost::listS>,

boost::detail::vertex_property_map<boost::adjacency_list<
                      boost::vecS, boost::vecS, boost::undirectedS,
                      boost::property<boost::vertex_name_t,
CGAL::Point_3<R>,
                      boost::no_property>, boost::no_property,
                      boost::no_property, boost::listS>,
                      boost::vertex_index_t>::Property>::Vertex>,
                      boost::default_color_type, boost::default_color_type
&>

boost::make_iterator_property_map(std::vector<boost::defa
                      ult_color_type,
                      std::allocator<boost::default_color_type>>::value_type
                      *,

boost::vec_adj_list_vertex_id_map<boost::detail::vertex_p
                      roperty_map<boost::adjacency_list<boost::vecS,
                      boost::vecS, boost::undirectedS,
                      boost::property<boost::vertex_name_t,
CGAL::Point_3<R>,
                      boost::no_property>, boost::no_property,
                      boost::no_property, boost::listS>,
                      boost::vertex_index_t>::Property,

boost::vec_adj_list_id_vertex_pa::bind<boost::vertex_inde
                      x_t, boost::adjacency_list<boost::vecS, boost::vecS,
                      boost::undirectedS,
                      boost::property<boost::vertex_name_t,
CGAL::Point_3<R>,
                      boost::no_property>, boost::no_property,
                      boost::no_property, boost::listS>,

boost::detail::vertex_property_map<boost::adjacency_list<
                      boost::vecS, boost::vecS, boost::undirectedS,
                      boost::property<boost::vertex_name_t,
CGAL::Point_3<R>,
                      boost::no_property>, boost::no_property,
                      boost::no_property, boost::listS>,
                      boost::vertex_index_t>::Property>::Vertex>,
                      boost::default_color_type)" at line 163 of

"/home/bob/utils_install/SGI/boost-1_26_0-SGI.OPT.MPRO7.3
                      /boost/graph/depth_first_search.hpp"
            instantiation of "void

boost::detail::dfs_dispatch<boost::detail::error_property
                      _not_found>::apply(const
                      boost::adjacency_list<boost::vecS, boost::vecS,
                      boost::undirectedS,
                      boost::property<boost::vertex_name_t,
CGAL::Point_3<R>,
                      boost::no_property>, boost::no_property,
                      boost::no_property, boost::listS> &,
                      boost::detail::components_recorder<std::vector<Int,
                      std::allocator<Int>>::value_type *>, unsigned int,
const

boost::bgl_named_params<boost::detail::components_recorde
                      r<std::vector<Int, std::allocator<Int>>::value_type
*>,
                      boost::graph_visitor_t, boost::no_property> &,
                      boost::detail::error_property_not_found)" at line 187
of

"/home/bob/utils_install/SGI/boost-1_26_0-SGI.OPT.MPRO7.3
                      /boost/graph/depth_first_search.hpp"
            instantiation of "void boost::depth_first_search(const
                      boost::adjacency_list<boost::vecS, boost::vecS,
                      boost::undirectedS,
                      boost::property<boost::vertex_name_t,
CGAL::Point_3<R>,
                      boost::no_property>, boost::no_property,
                      boost::no_property, boost::listS> &, const

boost::bgl_named_params<boost::detail::components_recorde
                      r<std::vector<Int, std::allocator<Int>>::value_type
*>,
                      boost::graph_visitor_t, boost::no_property> &)" at
line
                      97 of

"/home/bob/utils_install/SGI/boost-1_26_0-SGI.OPT.MPRO7.3
                      /boost/graph/connected_components.hpp"
            instantiation of "boost::property_traits<std::vector<Int,
                      std::allocator<Int>>::value_type *>::value_type
                      boost::connected_components(const Graph &,
                      std::vector<Int, std::allocator<Int>>::value_type *)"
at
                      line 350 of

"/home/bob/dev/products/nmove/main/algos/src/Intersection
                      s.txx"
            instantiation of "void

nmove::algos::segments_to_polylines(std::vector<CGAL::Seg
                      ment_3<R>,
                      std::allocator<CGAL::Segment_3<R>>>::value_type *,
                      std::vector<CGAL::Segment_3<R>,
                      std::allocator<CGAL::Segment_3<R>>>::value_type *)"

1 error detected in the compilation of "t_p_test.cxx".
C++ prelinker: Error compiling obj_files/SGI.DEBUG.MPRO7.3/t_p_test.o
gmake: *** [algos_test] Error 2


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk