Borland Builder 6 compiler error

2005-07-19
2013-05-14
  • I want used BOOST in my projects. But I can't compile BOOST with Borland Builder 6. For example I'm compiled (ROOT)\libs\graph\example\print-adjacent-vertices.cpp and compiler reports more than 26 error. as follows:

    [C++ Error] tuple_basic.hpp(156): E2238 Multiple declaration for 'element<N,T>'
    [C++ Error] tuple_basic.hpp(141): E2344 Earlier declaration of 'element<N,T>'
    [C++ Error] facade_iterator_category.hpp(158): E2439 'typename' is only allowed in template declarations
    [C++ Error] value_wknd.hpp(28): E2029 'is_convertible<detail::iterator_category_with_traversal<_STL::input_iterator_tag,bidirectional_traversal_tag>,incrementable_traversal_tag>' must be a previously defined class or struct
    [C++ Error] if.hpp(67): E2407 Dependent type qualifier 'mpl::aux::value_wknd<is_convertible<detail::iterator_category_with_traversal<_STL::input_iterator_tag,bidirectional_traversal_tag>,incrementable_traversal_tag> >' has no member symbol named 'value'
    [C++ Error] if.hpp(67): E2407 Dependent type qualifier 'mpl::aux::value_wknd<is_convertible<detail::iterator_category_with_traversal<_STL::input_iterator_tag,bidirectional_traversal_tag>,incrementable_traversal_tag> >' has no member symbol named 'value'
    [C++ Error] if.hpp(70): E2407 Dependent type qualifier 'mpl::aux::value_wknd<is_convertible<detail::iterator_category_with_traversal<_STL::input_iterator_tag,bidirectional_traversal_tag>,incrementable_traversal_tag> >' has no member symbol named 'value'
    [C++ Error] if.hpp(70): E2407 Dependent type qualifier 'mpl::aux::value_wknd<is_convertible<detail::iterator_category_with_traversal<_STL::input_iterator_tag,bidirectional_traversal_tag>,incrementable_traversal_tag> >' has no member symbol named 'value'
    [C++ Error] eval_if.hpp(43): E2402 Illegal base class type: formal type 'typename mpl::if_<C,F1,F2>::type' resolves to 'typename mpl::if_c<&__CMVI,mpl::identity<detail::iterator_category_with_traversal<_STL::input_iterator_tag,bidirectional_traversal_tag> >,detail::old_category_to_traversal<detail::iterator_category_with_traversal<_STL::input_iterator_tag,bidirectional_traversal_tag> > >::type'
    [C++ Error] iterator_categories.hpp(149): E2029 'mpl::eval_if<is_convertible<detail::iterator_category_with_traversal<_STL::input_iterator_tag,bidirectional_traversal_tag>,incrementable_traversal_tag>,mpl::identity<detail::iterator_category_with_traversal<_STL::input_iterator_tag,bidirectional_traversal_tag> >,detail::old_category_to_traversal<detail::iterator_category_with_traversal<_STL::input_iterator_tag,bidirectional_traversal_tag> > >' must be a previously defined class or struct
    [C++ Error] iterator_adaptor.hpp(321): E2404 Dependent type qualifier 'iterator_category_to_traversal<detail::iterator_category_with_traversal<_STL::input_iterator_tag,bidirectional_traversal_tag> >' has no member type named 'type'
    [C++ Error] adjacency_list.hpp(133): E2029 'iterator_adaptor<detail::out_edge_iter<_STL::_List_iterator<detail::sep_<unsigned int,no_property>,_STL::_Nonconst_traits<detail::sep_<unsigned int,no_property> > >,unsigned int,detail::edge_desc_impl<directed_tag,unsigned int>,int>,_STL::_List_iterator<detail::sep_<unsigned int,no_property>,_STL::_Nonconst_traits<detail::sep_<unsigned int,no_property> > >,detail::edge_desc_impl<directed_tag,unsigned int>,use_default,detail::edge_desc_impl<directed_tag,unsigned int>,int>' must be a previously defined class or struct
    [C++ Error] _iterator_base.h(94): E2404 Dependent type qualifier 'detail::out_edge_iter<_STL::_List_iterator<detail::sep_<unsigned int,no_property>,_STL::_Nonconst_traits<detail::sep_<unsigned int,no_property> > >,unsigned int,detail::edge_desc_impl<directed_tag,unsigned int>,int>' has no member type named 'iterator_category'
    [C++ Error] _iterator_base.h(95): E2404 Dependent type qualifier 'detail::out_edge_iter<_STL::_List_iterator<detail::sep_<unsigned int,no_property>,_STL::_Nonconst_traits<detail::sep_<unsigned int,no_property> > >,unsigned int,detail::edge_desc_impl<directed_tag,unsigned int>,int>' has no member type named 'value_type'
    [C++ Error] _iterator_base.h(96): E2404 Dependent type qualifier 'detail::out_edge_iter<_STL::_List_iterator<detail::sep_<unsigned int,no_property>,_STL::_Nonconst_traits<detail::sep_<unsigned int,no_property> > >,unsigned int,detail::edge_desc_impl<directed_tag,unsigned int>,int>' has no member type named 'difference_type'
    [C++ Error] _iterator_base.h(97): E2404 Dependent type qualifier 'detail::out_edge_iter<_STL::_List_iterator<detail::sep_<unsigned int,no_property>,_STL::_Nonconst_traits<detail::sep_<unsigned int,no_property> > >,unsigned int,detail::edge_desc_impl<directed_tag,unsigned int>,int>' has no member type named 'pointer'
    [C++ Error] _iterator_base.h(98): E2404 Dependent type qualifier 'detail::out_edge_iter<_STL::_List_iterator<detail::sep_<unsigned int,no_property>,_STL::_Nonconst_traits<detail::sep_<unsigned int,no_property> > >,unsigned int,detail::edge_desc_impl<directed_tag,unsigned int>,int>' has no member type named 'reference'
    [C++ Error] iterator.hpp(81): E2029 '_STL::iterator_traits<detail::out_edge_iter<_STL::_List_iterator<detail::sep_<unsigned int,no_property>,_STL::_Nonconst_traits<detail::sep_<unsigned int,no_property> > >,unsigned int,detail::edge_desc_impl<directed_tag,unsigned int>,int> >' must be a previously defined class or struct
    [C++ Error] adjacency_iterator.hpp(69): E2404 Dependent type qualifier 'detail::iterator_traits<detail::out_edge_iter<_STL::_List_iterator<detail::sep_<unsigned int,no_property>,_STL::_Nonconst_traits<detail::sep_<unsigned int,no_property> > >,unsigned int,detail::edge_desc_impl<directed_tag,unsigned int>,int> >' has no member type named 'difference_type'
    [C++ Error] adjacency_iterator.hpp(71): E2404 Dependent type qualifier 'detail::iterator_traits<detail::out_edge_iter<_STL::_List_iterator<detail::sep_<unsigned int,no_property>,_STL::_Nonconst_traits<detail::sep_<unsigned int,no_property> > >,unsigned int,detail::edge_desc_impl<directed_tag,unsigned int>,int> >' has no member type named 'difference_type'
    [C++ Error] iterator_adaptor.hpp(321): E2404 Dependent type qualifier 'iterator_category_to_traversal<detail::iterator_category_with_traversal<_STL::input_iterator_tag,bidirectional_traversal_tag> >' has no member type named 'type'
    [C++ Error] adjacency_list.hpp(166): E2029 'iterator_adaptor<detail::in_edge_iter<_STL::_List_iterator<detail::sep_<unsigned int,no_property>,_STL::_Nonconst_traits<detail::sep_<unsigned int,no_property> > >,unsigned int,detail::edge_desc_impl<directed_tag,unsigned int>,int>,_STL::_List_iterator<detail::sep_<unsigned int,no_property>,_STL::_Nonconst_traits<detail::sep_<unsigned int,no_property> > >,detail::edge_desc_impl<directed_tag,unsigned int>,use_default,detail::edge_desc_impl<directed_tag,unsigned int>,int>' must be a previously defined class or struct
    [C++ Error] _iterator_base.h(94): E2404 Dependent type qualifier 'detail::in_edge_iter<_STL::_List_iterator<detail::sep_<unsigned int,no_property>,_STL::_Nonconst_traits<detail::sep_<unsigned int,no_property> > >,unsigned int,detail::edge_desc_impl<directed_tag,unsigned int>,int>' has no member type named 'iterator_category'
    [C++ Error] _iterator_base.h(95): E2404 Dependent type qualifier 'detail::in_edge_iter<_STL::_List_iterator<detail::sep_<unsigned int,no_property>,_STL::_Nonconst_traits<detail::sep_<unsigned int,no_property> > >,unsigned int,detail::edge_desc_impl<directed_tag,unsigned int>,int>' has no member type named 'value_type'
    [C++ Error] _iterator_base.h(96): E2404 Dependent type qualifier 'detail::in_edge_iter<_STL::_List_iterator<detail::sep_<unsigned int,no_property>,_STL::_Nonconst_traits<detail::sep_<unsigned int,no_property> > >,unsigned int,detail::edge_desc_impl<directed_tag,unsigned int>,int>' has no member type named 'difference_type'
    [C++ Error] _iterator_base.h(96): E2228 Too many error or warning messages

     
    • I ran into this error too. I fixed it by installing update 4 for BCB6.