• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Hashtable error when compiling

cheertimmy

New Member
Joined
Aug 11, 2012
Messages
6
Reaction score
0
Not sure what all is needed to help me with this problem but here is a start of stuff i can give. 9.8 Mystic 0.2.15 Stians dev-cpp v2 . Hopefully i dont make to much of mess with this stuff. Anyway some insight on what went wrong (besides me being a dumb noob or something along those lines) would be very helpful and appreciated. =]

Code:
 [*][B]508[/B]
   return _M_bkt_num_key(__key, _M_buckets.size());
  }

[*][B]513[/B]
  return _M_bkt_num_key(_M_get_key(__obj));
  }

[*][B]518[/B]
    return _M_hash(__key) % __n;
  }

[*][B]587[/B]
const _Node* __old = _M_cur;
  _M_cur = _M_cur->_M_next;
  if (!_M_cur) {
[*] size_type __bucket = _M_ht->_M_bkt_num(__old->_M_val);
    while (!_M_cur && ++__bucket < _M_ht->_M_buckets.size())
      _M_cur = _M_ht->_M_buckets[__bucket];
  }
  return *this;
}

1 error from commands.cpp
Code:
[*][B]1443[/B]
void Commands::ghost(Player* player, const std::string& cmd, const std::string& param)
{
    player->switchGhostMode();

    SpectatorVec list;
    g_game.getSpectators(list, player->getPosition(), true, true);
[*] for(SpectatorVec::const_iterator it = list.begin(), end = list.end(); it != end; ++it)
    {
        Player* tmpPlayer = (*it)->getPlayer();
        tmpPlayer->sendCreatureChangeVisible(player, !player->isInGhostMode());
        if(tmpPlayer != player && !tmpPlayer->isAccessPlayer())
        {
            if(player->isInGhostMode())
                tmpPlayer->sendCreatureDisappear(player, player->getTile()->getClientIndexOfThing(tmpPlayer, player), true);
            else
                tmpPlayer->sendCreatureAppear(player, player->getPosition(), true);

            tmpPlayer->sendUpdateTile(player->getTile(), player->getPosition());
        }
    }


and here is errors

C:\Users\Onecard\Desktop\Redevelope pack\Stian's Repack Dev-Cpp v2\include\c++\3.4.5\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 = Creature*, _Key = Creature*, _HashFcn = __gnu_cxx::hash<Creature*>, _ExtractKey = std::_Identity<Creature*>, _EqualKey = std::equal_to<Creature*>, _Alloc = std::allocator<Creature*>]':

508 C:\Users\Onecard\Desktop\Redevelope pack\Stian's Repack Dev-Cpp v2\include\c++\3.4.5\ext\hashtable.h instantiated from `size_t __gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::_M_bkt_num_key(const _Key&) const [with _Val = Creature*, _Key = Creature*, _HashFcn = __gnu_cxx::hash<Creature*>, _ExtractKey = std::_Identity<Creature*>, _EqualKey = std::equal_to<Creature*>, _Alloc = std::allocator<Creature*>]'

513 C:\Users\Onecard\Desktop\Redevelope pack\Stian's Repack Dev-Cpp v2\include\c++\3.4.5\ext\hashtable.h instantiated from `size_t __gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::_M_bkt_num(const _Val&) const [with _Val = Creature*, _Key = Creature*, _HashFcn = __gnu_cxx::hash<Creature*>, _ExtractKey = std::_Identity<Creature*>, _EqualKey = std::equal_to<Creature*>, _Alloc = std::allocator<Creature*>]'

587 C:\Users\Onecard\Desktop\Redevelope pack\Stian's Repack Dev-Cpp v2\include\c++\3.4.5\ext\hashtable.h instantiated from `__gnu_cxx::_Hashtable_const_iterator<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>& __gnu_cxx::_Hashtable_const_iterator<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::eek:perator++() [with _Val = Creature*, _Key = Creature*, _HashFcn = __gnu_cxx::hash<Creature*>, _ExtractKey = std::_Identity<Creature*>, _EqualKey = std::equal_to<Creature*>, _Alloc = std::allocator<Creature*>]'

518 C:\Users\Onecard\Desktop\Redevelope pack\Stian's Repack Dev-Cpp v2\include\c++\3.4.5\ext\hashtable.h no match for call to `(const __gnu_cxx::hash<Creature*>) (Creature* const&)'

C:\Users\Onecard\Desktop\9.8 trial compile\9.8\0.2.15.r102\dev-cpp\Makefile.win [Build Error] [obj//commands.o] Error 1

This is in Commands.cpp i took section where problem is
1443 C:\Users\Onecard\Desktop\9.8 trial compile\9.8\0.2.15.r102\commands.cpp instantiated from here
 
Back
Top