STLport 4.6 failed compiling with hp ux aCC

umen
2008-11-05
2013-05-13
  • umen
    umen
    2008-11-05

    hello all
    im trying to compile STLport in hpux with the command  make -f hpacc.mak
    but im getting this compilation errors can someone please tell me what is wrong ?:

    /obj/ACC/DebugSTLD/dll_main.o
    "../stlport/stl/debug/_iterator.h", line 148: error #2694: reinterpret_cast
              cannot cast away const or other type qualifiers
          __owned_link(__c), _M_iterator(*__REINTERPRET_CAST(const _Nonconst_iterator *, &__it)) {}
                                          ^
              detected during:
                instantiation of
                          "_STL::_DBG_iter_base<_Container>::_DBG_iter_base(const
                          _STL::__owned_list *, const _Container::const_iterator
                          &) [with _Container=_STL::__vector<void *,
                          _STL::allocator<void *>>]" at line 196
                instantiation of "_STL::_DBG_iter_mid<_Container,
                          _Traits>::_DBG_iter_mid(const _STL::__owned_list *,
                          const _Container::const_iterator &) [with
                          _Container=_STL::__vector<void *, _STL::allocator<void
                          *>>, _Traits=_STL::_Vector_const_traits<void *, void
                          **>]" at line 226
                instantiation of "_STL::_DBG_iter<_Container,
                          _Traits>::_DBG_iter(const _STL::__owned_list *, const
                          _STL::_DBG_iter_base<_Container>::_Const_iterator &)
                          [with _Container=_STL::__vector<void *,
                          _STL::allocator<void *>>,
                          _Traits=_STL::_Vector_const_traits<void *, void **>]" at
                          line 115 of "../stlport/stl/debug/_vector.h"
                instantiation of "_STL::_DBG_iter<_STL::__vector<_Tp, _Alloc>,
                          _STL::_Vector_const_traits<_STL::__vector<_Tp,
                          _Alloc>::value_type, _STL::__vector<_Tp,
                          _Alloc>::iterator>> _STL::vector<_Tp, _Alloc>::begin()
                          const [with _Tp=void *, _Alloc=_STL::allocator<void *>]"
                          at line 171 of "dll_main.cpp"

    "../stlport/stl/debug/_iterator.h", line 148: error #2694: reinterpret_cast
              cannot cast away const or other type qualifiers
          __owned_link(__c), _M_iterator(*__REINTERPRET_CAST(const _Nonconst_iterator *, &__it)) {}
                                          ^
              detected during:
                instantiation of
                          "_STL::_DBG_iter_base<_Container>::_DBG_iter_base(const
                          _STL::__owned_list *, const _Container::const_iterator
                          &) [with _Container=_STL::_Nondebug_string<char,
                          _STL::char_traits<char>, _STL::allocator<char>>]" at
                          line 196
                instantiation of "_STL::_DBG_iter_mid<_Container,
                          _Traits>::_DBG_iter_mid(const _STL::__owned_list *,
                          const _Container::const_iterator &) [with
                          _Container=_STL::_Nondebug_string<char,
                          _STL::char_traits<char>, _STL::allocator<char>>,
                          _Traits=_STL::_Const_traits<char>]" at line 226
                instantiation of "_STL::_DBG_iter<_Container,
                          _Traits>::_DBG_iter(const _STL::__owned_list *, const
                          _STL::_DBG_iter_base<_Container>::_Const_iterator &)
                          [with _Container=_STL::_Nondebug_string<char,
                          _STL::char_traits<char>, _STL::allocator<char>>,
                          _Traits=_STL::_Const_traits<char>]" at line 144 of
                          "../stlport/stl/debug/_string.h"
                instantiation of "_STL::_DBG_iter<_STL::_Nondebug_string<_CharT,
                          _Traits, _Alloc>,
                          _STL::_Const_traits<_STL::_Nondebug_string<_CharT,
                          _Traits, _Alloc>::value_type>>
                          _STL::basic_string<_CharT, _Traits, _Alloc>::begin()
                          const [with _CharT=char,
                          _Traits=_STL::char_traits<char>,
                          _Alloc=_STL::allocator<char>]" at line 188 of
                          "dll_main.cpp"

    2 errors detected in the compilation of "dll_main.cpp".