kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #07731
Re: I really *love* STL error messages
On 03/23/2012 02:46 AM, Lorenzo Marcantonio wrote:
> Error building today's BZR:
>
> /home/mrclnz/cvswork/kicad-bzr/common/dialog_shim.cpp: In member
> function ‘virtual bool DIALOG_SHIM::Show(bool)’:
>
> /home/mrclnz/cvswork/kicad-bzr/common/dialog_shim.cpp:61:43: error:
> invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
>
> /usr/stow/gcc-4.6.2/bin/../lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/tr1/hashtable_policy.h:519:5:
> error: initializing argument 1 of ‘std::tr1::__detail::_Map_base<_Key,
> _Pair, std::_Select1st<_Pair>, true, _Hashtable>::mapped_type&
> std::tr1::__detail::_Map_base<_Key, _Pair, std::_Select1st<_Pair>, true,
> _Hashtable>::operator[](const _Key&) [with _Key = char*, _Pair
> = std::pair<char* const, EDA_RECT>, _Hashtable
> = std::tr1::_Hashtable<char*, std::pair<char* const, EDA_RECT>,
> std::allocator<std::pair<char* const, EDA_RECT> >,
> std::_Select1st<std::pair<char* const, EDA_RECT> >, wxStringEqual,
> wxStringHash, std::tr1::__detail::_Mod_range_hashing,
> std::tr1::__detail::_Default_ranged_hash,
> std::tr1::__detail::_Prime_rehash_policy, false, false, true>,
> std::tr1::__detail::_Map_base<_Key, _Pair, std::_Select1st<_Pair>, true,
> _Hashtable>::mapped_type = EDA_RECT]’ [-fpermissive]
>
> /home/mrclnz/cvswork/kicad-bzr/common/dialog_shim.cpp:70:30: error:
> invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
> /usr/stow/gcc-4.6.2/bin/../lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../include/c++/4.6.2/tr1/hashtable_policy.h:519:5:
> error: initializing argument 1 of ‘std::tr1::__detail::_Map_base<_Key,
> _Pair, std::_Select1st<_Pair>, true, _Hashtable>::mapped_type&
> std::tr1::__detail::_Map_base<_Key, _Pair, std::_Select1st<_Pair>, true,
> _Hashtable>::operator[](const _Key&) [with _Key = char*, _Pair
> = std::pair<char* const, EDA_RECT>, _Hashtable
> = std::tr1::_Hashtable<char*, std::pair<char* const, EDA_RECT>,
> std::allocator<std::pair<char* const, EDA_RECT> >,
> std::_Select1st<std::pair<char* const, EDA_RECT> >, wxStringEqual,
> wxStringHash, std::tr1::__detail::_Mod_range_hashing,
> std::tr1::__detail::_Default_ranged_hash,
> std::tr1::__detail::_Prime_rehash_policy, false, false, true>,
> std::tr1::__detail::_Map_base<_Key, _Pair, std::_Select1st<_Pair>, true,
> _Hashtable>::mapped_type = EDA_RECT]’ [-fpermissive]
>
> I have no words, it's longer than some spanish family names (the ones
> with full descendancy in them XD); it's actually just *one* error, really!
>
> Anyway, language critics apart, it's from GCC 4.6.2 ....
still a problem?
Please state OS, wx version.
Try different wx version if easy.
4.6 is pretty new. the wx hashtable support might need some catching up. This is done
using one of the wx magic headers.
References