All pastes #276403 Raw Edit

Error with hash

public text v1 · immutable
·published 2006-12-12 08:45 UTC
rendered paste body
$ make
==== Building EngineCommon ====
CEGUICommonFileDialog.cpp
/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/g++-v3/ext/hashtable.h: In member function `size_t __gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::_M_bkt_num_key(const _Key&, size_t) const [with _Val = std::pair<const std::string, CEGUI::CCommonFileDialog::_Path*>, _Key = std::string, _HashFcn = __gnu_cxx::hash<std::string>, _ExtractKey = std::_Select1st<std::pair<const std::string, CEGUI::CCommonFileDialog::_Path*> >, _EqualKey = std::equal_to<std::string>, _Alloc = std::allocator<CEGUI::CCommonFileDialog::_Path*>]':
/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/g++-v3/ext/hashtable.h:508:   instantiated from `size_t __gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::_M_bkt_num_key(const _Key&) const [with _Val = std::pair<const std::string, CEGUI::CCommonFileDialog::_Path*>, _Key = std::string, _HashFcn = __gnu_cxx::hash<std::string>, _ExtractKey = std::_Select1st<std::pair<const std::string, CEGUI::CCommonFileDialog::_Path*> >, _EqualKey = std::equal_to<std::string>, _Alloc = std::allocator<CEGUI::CCommonFileDialog::_Path*>]'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/g++-v3/ext/hashtable.h:447:   instantiated from `__gnu_cxx::_Hashtable_iterator<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc> __gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::find(const _Key&) [with _Val = std::pair<const std::string, CEGUI::CCommonFileDialog::_Path*>, _Key = std::string, _HashFcn = __gnu_cxx::hash<std::string>, _ExtractKey = std::_Select1st<std::pair<const std::string, CEGUI::CCommonFileDialog::_Path*> >, _EqualKey = std::equal_to<std::string>, _Alloc = std::allocator<CEGUI::CCommonFileDialog::_Path*>]'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/g++-v3/ext/hash_map:176:   instantiated from `typename __gnu_cxx::hashtable<std::pair<const _Key, _Tp>, _Key, _HashFcn, std::_Select1st<std::pair<const _Key, _Tp> >, _EqualKey, _Alloc>::iterator __gnu_cxx::hash_map<_Key, _Tp, _HashFcn, _EqualKey, _Alloc>::find(const typename __gnu_cxx::hashtable<std::pair<const _Key, _Tp>, _Key, _HashFcn, std::_Select1st<std::pair<const _Key, _Tp> >, _EqualKey, _Alloc>::key_type&) [with _Key = std::string, _Tp = CEGUI::CCommonFileDialog::_Path*, _HashFcn = __gnu_cxx::hash<std::string>, _EqualKey = std::equal_to<std::string>, _Alloc = std::allocator<CEGUI::CCommonFileDialog::_Path*>]'
CEGUICommonFileDialog.h:141:   instantiated from `T CEGUI::getEntryFromHashMap(Z, __gnu_cxx::hash_map<Z, T, __gnu_cxx::hash<_Key>, std::equal_to<_Key>, std::allocator<_T2> >*) [with Z = std::string, T = CEGUI::CCommonFileDialog::_Path*]'
CEGUICommonFileDialog.cpp:986:   instantiated from here
/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/g++-v3/ext/hashtable.h:518: error: no match for call to `(const __gnu_cxx::hash<std::string>) (const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)'
make[1]: *** [obj/Debug/CEGUICommonFileDialog.o] Error 1
make: *** [EngineCommon] Error 2