Hi, I'm one new user. I tried to run test programs in the : ..../boost_1_26_0/libs/graph/test When I try to compile: g++ -I /net/cooler/vol/export/proteome/murvai/CC/BOOST/boost_1_26_0/ adj_matrix_cc.cpp I got many error message (some example from the error messages): What can I do in this case? /net/cooler/vol/export/proteome/murvai/CC/BOOST/boost_1_26_0/boost/iterator_adaptors.hpp:817: instantiated from `boost::iterator_adaptor<boost::iterator_adaptor<char *,boost::detail::dir_adj_matrix_out_edge_iter_policies<unsigned int,char *,unsigned int>,boost::detail::matrix_edge_desc_impl<boost::directed_tag,unsigned int>,boost::detail::matrix_edge_desc_impl<boost::directed_tag,unsigned int>,boost::detail::matrix_edge_desc_impl<boost::directed_tag,unsigned int> *,boost::multi_pass_input_iterator_tag,int>,boost::filter_iterator_policies<boost::detail::does_edge_exist,boost::iterator_adaptor<char *,boost::detail::dir_adj_matrix_out_edge_iter_policies<unsigned int,char *,unsigned int>,boost::detail::matrix_edge_desc_impl<boost::directed_tag,unsigned int>,boost::detail::matrix_edge_desc_impl<boost::directed_tag,unsigned int>,boost::detail::matrix_edge_desc_impl<boost::directed_tag,unsigned int> *,boost::multi_pass_input_iterator_tag,int>
,boost::detail::matrix_edge_desc_impl<boost::directed_tag,unsigned int>,boost::detail::matrix_edge_desc_impl<boost::directed_tag,unsigned int>,boost::detail::matrix_edge_desc_impl<boost::directed_tag,unsigned int> *,boost::multi_pass_input_iterator_tag,int>' /net/cooler/vol/export/proteome/murvai/CC/BOOST/boost_1_26_0/boost/graph/adjacency_matrix.hpp:326: instantiated from `boost::adjacency_matrix<boost::directedS,boost::no_property,boost::no_property,boost::no_property,allocator<bool> ' /net/cooler/vol/export/proteome/murvai/CC/BOOST/boost_1_26_0/boost/graph/graph_traits.hpp:38: instantiated from `boost::graph_traits<boost::adjacency_matrix<boost::directedS,boost::no_property,boost::no_property,boost::no_property,allocator<bool>
' /net/cooler/vol/export/proteome/murvai/CC/BOOST/boost_1_26_0/boost/graph/graph_concepts.hpp:177: instantiated from `boost::VertexListGraphConcept<boost::adjacency_matrix<boost::directedS,boost::no_property,boost::no_property,boost::no_property,allocator<bool> ' /net/cooler/vol/export/proteome/murvai/CC/BOOST/boost_1_26_0/boost/concept_check.hpp:41: instantiated from `boost::function_requires<boost::VertexListGraphConcept<boost::adjacency_matrix<boost::directedS,boost::no_property,boost::no_property,boost::no_property,allocator<bool>
()' adj_matrix_cc.cpp:35: instantiated from here /net/cooler/vol/export/proteome/murvai/CC/BOOST/boost_1_26_0/boost/type_traits/composite_traits.hpp:204: incomplete type `boost::is_member_pointer<char *>' does not have member `value'
Thank you, Janos
Hi Janos, I think using the flag -ftemplate-depth-30 will solve your problem. In general, you need to use this flag with g++ whenever you are compiling BGL stuff. Otherwise, the g++ template nesting limit is too low. Cheers, Jeremy ---------------------------------------------------------------------- Jeremy Siek http://php.indiana.edu/~jsiek/ Ph.D. Student, Indiana Univ. B'ton email: jsiek@osl.iu.edu C++ Booster (http://www.boost.org) office phone: (812) 855-3608 ----------------------------------------------------------------------
participants (2)
-
Janos Murvai
-
Jeremy Siek