Jump to content

Mind Rapist

Active Member
  • Posts

    548
  • Joined

  • Last visited

  • Days Won

    6
  • Feedback

    0%

Everything posted by Mind Rapist

  1. I have this error output at the end of my build: Linking...../game_r70140-BETA_release release/guild.o: In function `CGuild::GuildPointChange(unsigned char, int, bool)': guild.cpp:(.text+0x3939): undefined reference to `CGuild::CGuild(CGuild const&)' guild.cpp:(.text+0x39d6): undefined reference to `CGuild::CGuild(CGuild const&)' release/guild.o: In function `CGuild::SkillLevelUp(unsigned int)': guild.cpp:(.text+0x48fb): undefined reference to `CGuild::CGuild(CGuild const&)' guild.cpp:(.text+0x49be): undefined reference to `CGuild::CGuild(CGuild const&)' clang-8: error: linker command failed with exit code 1 (use -v to see invocation) gmake: *** [Makefile:90: ../game_r70140-BETA_release] Error 1 guild.cpp file: I am using clang++-devel as the compiler and C++1z as std version. Makefile (look for "<===" to find line 90 - mentioned in the error output): I would appreciate any comment bringing me closer to understand to whatever goes on here.
  2. The source has no extern it depends on system libs and includes. It hits in 2 files guild.cpp and cipher.cpp and I've been looking at their functions but couldn't find what's wrong. If there was only a way to know what lines it's talking about I could investigate more but all it says is guild.cpp:(.text+0x3939) UPDATE::: By adding a CFLAG called -DCRYPTOPP_DISABLE_ASM all the errors from file cipher.cpp have dissapeard! Errors for file guild.cpp remain tho...
  3. I did it. Crypto++ 700 compiles only in C++17. I tried again: cryptopp700# gmake clean cryptopp700# gmake 'CXXFLAGS+=-std=c++1z' cryptopp700# strip --strip-all libcryptopp.a cryptopp700# mv libcryptopp.a /usr/local/lib game/src# gmake clean game/src# gmake release Results were the same...
  4. When the compiler gets to the game link point, it throws this error: guild.cpp: cipher.cpp: Compiler: c++-devel Crypto++ version: 7
  5. Well he is the only one gave me answers and his code works like a charm so imma take my chances
  6. Ok seems like I've hit a dead end!!! I thought by upgrading and compiling to C++17 would solve this but now that everything is perfect, here it is again. I have no idea what it means or how to fix it but in any case someone wants to help here is the object error: Linking...../game_r70140-BETA_release release/guild.o: In function `CGuild::GuildPointChange(unsigned char, int, bool)': guild.cpp:(.text+0x3939): undefined reference to `CGuild::CGuild(CGuild const&)' guild.cpp:(.text+0x39d6): undefined reference to `CGuild::CGuild(CGuild const&)' release/guild.o: In function `CGuild::SkillLevelUp(unsigned int)': guild.cpp:(.text+0x48fb): undefined reference to `CGuild::CGuild(CGuild const&)' guild.cpp:(.text+0x49be): undefined reference to `CGuild::CGuild(CGuild const&)' release/cipher.o: In function `DH2KeyAgreement::Prepare(void*, unsigned int*)': cipher.cpp:(.text+0xbe2): undefined reference to `CryptoPP::AlignedDeallocate(void*)' cipher.cpp:(.text+0xc9a): undefined reference to `CryptoPP::AlignedDeallocate(void*)' cipher.cpp:(.text+0xcd3): undefined reference to `CryptoPP::AlignedDeallocate(void*)' cipher.cpp:(.text+0xd0c): undefined reference to `CryptoPP::AlignedDeallocate(void*)' cipher.cpp:(.text+0xea7): undefined reference to `CryptoPP::AlignedDeallocate(void*)' release/cipher.o:cipher.cpp:(.text+0xf76): more undefined references to `CryptoPP::AlignedDeallocate(void*)' follow release/cipher.o: In function `CryptoPP::MontgomeryRepresentation::MontgomeryRepresentation(CryptoPP::MontgomeryRepresentation const&)': cipher.cpp:(.text._ZN8CryptoPP24MontgomeryRepresentationC2ERKS0_[_ZN8CryptoPP24MontgomeryRepresentationC2ERKS0_]+0x4e): undefined reference to `CryptoPP::AlignedAllocate(unsigned int)' cipher.cpp:(.text._ZN8CryptoPP24MontgomeryRepresentationC2ERKS0_[_ZN8CryptoPP24MontgomeryRepresentationC2ERKS0_]+0xc3): undefined reference to `CryptoPP::AlignedDeallocate(void*)' release/cipher.o: In function `CryptoPP::ModularArithmetic::ModularArithmetic(CryptoPP::ModularArithmetic const&)': cipher.cpp:(.text._ZN8CryptoPP17ModularArithmeticC2ERKS0_[_ZN8CryptoPP17ModularArithmeticC2ERKS0_]+0x83): undefined reference to `CryptoPP::AlignedDeallocate(void*)' cipher.cpp:(.text._ZN8CryptoPP17ModularArithmeticC2ERKS0_[_ZN8CryptoPP17ModularArithmeticC2ERKS0_]+0xc3): undefined reference to `CryptoPP::AlignedDeallocate(void*)' release/cipher.o: In function `CryptoPP::ModularArithmetic::~ModularArithmetic()': cipher.cpp:(.text._ZN8CryptoPP17ModularArithmeticD2Ev[_ZN8CryptoPP17ModularArithmeticD2Ev]+0x32): undefined reference to `CryptoPP::AlignedDeallocate(void*)' cipher.cpp:(.text._ZN8CryptoPP17ModularArithmeticD2Ev[_ZN8CryptoPP17ModularArithmeticD2Ev]+0x67): undefined reference to `CryptoPP::AlignedDeallocate(void*)' release/cipher.o:cipher.cpp:(.text._ZN8CryptoPP17ModularArithmeticD2Ev[_ZN8CryptoPP17ModularArithmeticD2Ev]+0x9c): more undefined references to `CryptoPP::AlignedDeallocate(void*)' follow clang-8: error: linker command failed with exit code 1 (use -v to see invocation) gmake: *** [Makefile:90: ../game_r70140-BETA_release] Error 1
  7. It worked! I can't believe I didn't think about that. It's over half now, hitting at char_battle.cpp. It had a problem with random_shuffle (removed at 17) so I made some research and changed it to std::shuffle and included algorithm and random. I passed a third parameter and it looks like this now: std::shuffle(vec_bSlots.begin(), vec_bSlots.end(), std::default_random_engine(send)); but it seems to have a problem with that third parameter: /usr/include/c++/v1/random:1959:8: error: member reference base type 'int (int, const void *, unsigned int, int)' is not a structure or union __q.generate(__ar, __ar + __k + 3); ~~~^~~~~~~~~ ... char_battle.cpp:1074:55: note: in instantiation of function template specialization 'std::__1::linear_congruential_engine<unsigned int, 48271, 0, 2147483647>::linear_congruential_engine<int (int, const void *, unsigned int, int)>' requested here ...std::shuffle(vec_bSlots.begin(), vec_bSlots.end(), std::default_random_e... ^ EDIT: Easily fixed! For future reference: // Instead of std::shuffle(vec_bSlots.begin(), vec_bSlots.end(), std::default_random_engine(send)); // Type this std::random_device rd; std::mt19937 g(rd()); std::shuffle(vec_bSlots.begin(), vec_bSlots.end(), g);
  8. You are a life saver! The compile is way ahead now. I even needed this code on my next error: for_each(v.begin(), v.end(), [this](auto&& data) { return this->UpdateStateMachine(iPulse); }); Here is a little different tho, here the UpdateStateMachine is a member of CHARACTER while this function is a member of CHARACTER_MANAGER (exact location: char_manager.cpp -> void CHARACTER_MANAGER::Update(int iPulse)). I tried replacing [this] with [CHARACTER] and [&CHARATCTER] but got this error: char_manager.cpp:693:8: error: 'CHARACTER' in capture list does not name a variable [&CHARACTER](auto&& data) { retu... ^
  9. I have this error: In file included from ./any_function.h:29: ./any_function.inc:98:3: error: no matching function for call to object of type '(lambda at guild.cpp:1023:39)' held(func_arg); ^~~~ I am trying to pass this: DBManager::instance().FuncAfterQuery([this](auto&& data) { return this->RefreshCommentForce(data); }, (char*)ch->GetPlayerID(), Other methods have failed too (std::bind). I am compiling with C++17. Does anyone know what's wrong?
  10. Hello community, I don't know if this is the right section for this. I don't even know what's real anymore... I've been spending sleepless nights over the compiler trying to make it work... Let's start from the beginning. I downloaded Vanilla core r70140 from the only available link I found online. The core was pretty bad-shaped. I fixed everything, I upgraded the compiler to C++17. Few things left to make it to first successful compile, but I don't have the knowledge to do it alone. I realise it now, so I'm asking for the community's help. If I manage to compile it successfully, I promise to test it, fix everything needs fixing and when I'm done, edit this topic with a download link that won't go down and a tutorial for the non-familliars on how to install it and compile it. The source has no need for Extern folder and is using the latest libs released (including MariaDB) making it the most lightweight and powerfull core I've seen public. Optimized for security and performance by Vanilla, it's the perfect kick start for a powerful development enviroment or the rise of a new server. The use is up to you. I've fixed most of it I believe but the real struggle is now at guild.cpp (function void CGuild::AddComment(LPCHARACTER ch, const std::string& str)? DBManager::instance().FuncAfterQuery([this](auto&& data) { return this->RefreshCommentForce(data); }, ch->GetPlayerID(), "INSERT INTO guild_comment%s(guild_id, name, notice, content, time) VALUES(%u, '%s', %d, '%s', NOW())", get_table_postfix(), m_data.guild_id, ch->GetName(), (str[0] == '!') ? 1 : 0, text); I've changed this line due to deprecation of function bind and mem_fn. I changed 'em all to lambdas but it doesn't matter because there is always an error. I also removed the use of void_bind (from file any_functions.h). Here the error is: guild.cpp:1023:24: error: no matching member function for call to 'FuncAfterQuery' DBManager::instance().FuncAfterQuery([this](auto&& data) { retur... ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ ./db.h:157:42: note: candidate function template not viable: no known conversion from 'DWORD' (aka 'unsigned int') to 'const char *' for 2nd argument template <class Functor> void DBManager::FuncAfterQuery(Functor f, cons... ^ 1 error generated. I cannot find a proper way to convert ch->GetPlayerID() into a const char*. I've tried c_str(), std::to_string(), boost::lexical_cast<string>, etc... Non of them worked without an error. That was supposed to be the job of void_bind, but this method has more errors than this. Btw if I'm doing something the wrong way here you guys are the experts so please tell me. I believe after this the core will be ready for testing and therefor uploading. Thank you community for helping me release a better core for everyone and thank you for helping me continue the work of Vanilla, who gave us so much over the years. Oh I almost forgot. In the upload there will be credits of all people who helped (little or much) as an extra thank you for the contribution. Let's do it community. Best regards
  11. Thank you so much for your answer it was indeed a good solve but now there is another error in: DBManager::instance().FuncAfterQuery(void_bind(std::bind(&CGuild::RefreshCommentForce, this, _1), ch->GetPlayerID()) The error is: In file included from guild.cpp:10: In file included from ./db.h:5: ./any_function.h:41:15: error: no type named 'argument_type' in 'std::__1::__bind<std::__1::__mem_fn<void (CGuild::*)(unsigned int)>, CGuild *, const std::__1::placeholders::__ph<1> &>' typename F::argument_type value; ~~~~~~~~~~~~^~~~~~~~~~~~~ guild.cpp:1025:39: note: in instantiation of template class 'void_binder<std::__1::__bind<std::__1::__mem_fn<void (CGuild::*)(unsigned int)>, CGuild *, const std::__1::placeholders::__ph<1> &> >' requested here DBManager::instance().FuncAfterQuery(void_bind(std::bind(std::me... ^ In file included from guild.cpp:10: In file included from ./db.h:5: ./any_function.h:43:45: error: no type named 'argument_type' in 'std::__1::__bind<std::__1::__mem_fn<void (CGuild::*)(unsigned int)>, CGuild *, const std::__1::placeholders::__ph<1> &>' void_binder(const F& f, const typename F::argument_type x) ~~~~~~~~~~~~^~~~~~~~~~~~~ ./any_function.h:53:22: error: no type named 'argument_type' in 'std::__1::__bind<std::__1::__mem_fn<void (CGuild::*)(unsigned int)>, CGuild *, const std::__1::placeholders::__ph<1> &>' typedef typename F::argument_type arg_type; ~~~~~~~~~~~~^~~~~~~~~~~~~ guild.cpp:1025:39: note: in instantiation of function template specialization 'void_bind<std::__1::__bind<std::__1::__mem_fn<void (CGuild::*)(unsigned int)>, CGuild *, const std::__1::placeholders::__ph<1> &>, unsigned int>' requested here DBManager::instance().FuncAfterQuery(void_bind(std::bind(std::me... ^ In file included from guild.cpp:10: In file included from ./db.h:5: ./any_function.h:54:9: error: no matching constructor for initialization of 'void_binder<std::__1::__bind<std::__1::__mem_fn<void (CGuild::*)(unsigned int)>, CGuild *, const std::__1::placeholders::__ph<1> &> >' return void_binder<F>(f, arg_type(arg)); ^ ~~~~~~~~~~~~~~~~ ./any_function.h:37:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 2 were provided class void_binder ^ ./any_function.h:37:7: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 2 were provided ./any_function.h:37:7: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 2 were provided I also tried to do it with lamdas DBManager::instance().FuncAfterQuery(void_bind([this](auto&& data) { return this->RefreshCommentForce(data); }, ch->GetPlayerID()), instead of bind (deprecated - probably will be removed in future revisions) but the result was the same. I also tried removing the void_bind function but I couldn't find a proper way to convert ch->GetPlayerID() into a const char* without causing more errors. What I'm missing here? Again thank you so much for your answer
  12. Ok so this might sound weird. As you know C++1z (17) is out there for a while now and I decided to convert a source code from C++14 to C++1z. The reason is that I am using libs directly from the system and Crypto++ 7 can be used only in C++1z. But when I'm building the game, I'm getting this error: guild.cpp:630:39: error: no member named 'bind1st' in namespace 'std' DBManager::instance().FuncQuery(std::bind1st(std::mem_fun(&CGuil... ~~~~~^ guild.cpp:630:52: error: no member named 'mem_fun' in namespace 'std' DBManager::instance().FuncQuery(std::bind1st(std::mem_fun(&CGuil... ~~~~~^ guild.cpp:635:39: error: no member named 'bind1st' in namespace 'std' DBManager::instance().FuncQuery(std::bind1st(std::mem_fun(&CGuil... ~~~~~^ guild.cpp:635:52: error: no member named 'mem_fun' in namespace 'std' DBManager::instance().FuncQuery(std::bind1st(std::mem_fun(&CGuil... ~~~~~^ guild.cpp:638:39: error: no member named 'bind1st' in namespace 'std' DBManager::instance().FuncQuery(std::bind1st(std::mem_fun(&CGuil... ~~~~~^ guild.cpp:638:52: error: no member named 'mem_fun' in namespace 'std' DBManager::instance().FuncQuery(std::bind1st(std::mem_fun(&CGuil... ~~~~~^ guild.cpp:768:39: error: no member named 'bind1st' in namespace 'std' DBManager::instance().FuncQuery(std::bind1st(std::mem_fun(&CGuil... ~~~~~^ guild.cpp:768:52: error: no member named 'mem_fun' in namespace 'std' DBManager::instance().FuncQuery(std::bind1st(std::mem_fun(&CGuil... ~~~~~^ guild.cpp:1023:54: error: no member named 'bind1st' in namespace 'std' DBManager::instance().FuncAfterQuery(void_bind(std::bind1st(std:... ~~~~~^ guild.cpp:1023:67: error: no member named 'mem_fun' in namespace 'std' DBManager::instance().FuncAfterQuery(void_bind(std::bind1st(std::mem_fun... ~~~~~^ guild.cpp:1235:62: error: no member named 'bind1st' in namespace 'std' for_each(m_memberOnline.begin(), m_memberOnline.end(), std::bind... ~~~~~^ guild.cpp:1235:75: error: no member named 'mem_fun_ref' in namespace 'std' ...m_memberOnline.end(), std::bind1st(std::mem_fun_ref(&CGuild::SendSkillIn... ~~~~~^ guild.cpp:1494:64: error: no member named 'bind1st' in namespace 'std' ...for_each(m_memberOnline.begin(), m_memberOnline.end(), std::bind1st(std:... ~~~~~^ guild.cpp:1494:77: error: no member named 'mem_fun_ref' in namespace 'std' ...m_memberOnline.end(), std::bind1st(std::mem_fun_ref(&CGuild::SendSkillIn... ~~~~~^ guild.cpp:1525:67: error: no member named 'bind1st' in namespace 'std' ...for_each(m_memberOnline.begin(), m_memberOnline.end(), std::bind1st(std:... ~~~~~^ guild.cpp:1525:80: error: no member named 'mem_fun' in namespace 'std' ...m_memberOnline.end(), std::bind1st(std::mem_fun(&CGuild::SendGuildInfoPa... ~~~~~^ 16 errors generated. I did some research and found out that not only bind1st (renamed to bind) and mem_fun (renamed to mem_fn) are deprecated, but mem_fun_ref is completely gone from this revision. So I'm here now asking the community. Is there an alternative to this code? How can it be achieved? What needs to be changed? If it helps, here is guild.cpp: Any post is deeply appreciated.
  13. Can someone help with this? EDIT: So seems like I messed up with guild.cpp (now fixed) but now I have this: Linking...../game_r70140-BETA_debug debug/cipher.o: In function `CryptoPP::AllocatorWithCleanup<unsigned char, true>::allocate(unsigned int, void const*)': cipher.cpp:(.text._ZN8CryptoPP20AllocatorWithCleanupIhLb1EE8allocateEjPKv[_ZN8CryptoPP20AllocatorWithCleanupIhLb1EE8allocateEjPKv]+0x16): undefined reference to `CryptoPP::AlignedAllocate(unsigned int)' debug/cipher.o: In function `CryptoPP::AllocatorWithCleanup<unsigned char, true>::deallocate(void*, unsigned int)': cipher.cpp:(.text._ZN8CryptoPP20AllocatorWithCleanupIhLb1EE10deallocateEPvj[_ZN8CryptoPP20AllocatorWithCleanupIhLb1EE10deallocateEPvj]+0x1b): undefined reference to `CryptoPP::AlignedDeallocate(void*)' clang-8: error: linker command failed with exit code 1 (use -v to see invocation) gmake: *** [Makefile:86: ../game_r70140-BETA_debug] Error 1 which I have no idea what it means or how to fix it.
  14. Hey, thanks for the reply... Seems all I needed was just a reboot... Btw I'm using r70140, is there someone that can share a new link for 71480 please?
  15. What I'm missing here? gmake[1]: Entering directory '/usr/src/NEW/Server/game/src' compile BattleArena.cpp In file included from /usr/local/lib/gcc8/include/c++/unordered_map:46, from /usr/local/lib/gcc8/include/c++/functional:61, from ../../../Extern/include/boost/config/no_tr1/functional.hpp:21, from ../../../Extern/include/boost/smart_ptr/intrusive_ptr.hpp:24, from ../../../Extern/include/boost/intrusive_ptr.hpp:16, from event.h:10, from stdafx.h:40, from BattleArena.cpp:1: /usr/local/lib/gcc8/include/c++/bits/hashtable.h: In instantiation of 'class std::_Hashtable<VID, std::pair<const VID, unsigned int>, std::allocator<std::pair<const VID, unsigned int> >, std::__detail::_Select1st, std::equal_to<VID>, std::hash<VID>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<true, false, true> >': /usr/local/lib/gcc8/include/c++/bits/unordered_map.h:105:18: required from 'class std::unordered_map<VID, unsigned int>' char.h:572:34: required from here /usr/local/lib/gcc8/include/c++/bits/hashtable.h:195:21: error: static assertion failed: hash function must be invocable with an argument of key type static_assert(__is_invocable<const _H1&, const _Key&>{}, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from BattleArena.cpp:6: char.h: In constructor 'TSkillUseInfo::TSkillUseInfo()': char.h:576:32: error: use of deleted function 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map() [with _Key = VID; _Tp = unsigned int; _Hash = std::hash<VID>; _Pred = std::equal_to<VID>; _Alloc = std::allocator<std::pair<const VID, unsigned int> >]' dwVID(0), isGrandMaster(false) ^ In file included from /usr/local/lib/gcc8/include/c++/unordered_map:47, from /usr/local/lib/gcc8/include/c++/functional:61, from ../../../Extern/include/boost/config/no_tr1/functional.hpp:21, from ../../../Extern/include/boost/smart_ptr/intrusive_ptr.hpp:24, from ../../../Extern/include/boost/intrusive_ptr.hpp:16, from event.h:10, from stdafx.h:40, from BattleArena.cpp:1: /usr/local/lib/gcc8/include/c++/bits/unordered_map.h:141:7: note: 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map() [with _Key = VID; _Tp = unsigned int; _Hash = std::hash<VID>; _Pred = std::equal_to<VID>; _Alloc = std::allocator<std::pair<const VID, unsigned int> >]' is implicitly deleted because the default definition would be ill-formed: unordered_map() = default; ^~~~~~~~~~~~~ /usr/local/lib/gcc8/include/c++/bits/unordered_map.h:141:7: error: use of deleted function 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::_Hashtable() [with _Key = VID; _Value = std::pair<const VID, unsigned int>; _Alloc = std::allocator<std::pair<const VID, unsigned int> >; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to<VID>; _H1 = std::hash<VID>; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits<true, false, true>]' In file included from /usr/local/lib/gcc8/include/c++/unordered_map:46, from /usr/local/lib/gcc8/include/c++/functional:61, from ../../../Extern/include/boost/config/no_tr1/functional.hpp:21, from ../../../Extern/include/boost/smart_ptr/intrusive_ptr.hpp:24, from ../../../Extern/include/boost/intrusive_ptr.hpp:16, from event.h:10, from stdafx.h:40, from BattleArena.cpp:1: /usr/local/lib/gcc8/include/c++/bits/hashtable.h:413:7: note: 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::_Hashtable() [with _Key = VID; _Value = std::pair<const VID, unsigned int>; _Alloc = std::allocator<std::pair<const VID, unsigned int> >; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to<VID>; _H1 = std::hash<VID>; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits<true, false, true>]' is implicitly deleted because the default definition would be ill-formed: _Hashtable() = default; ^~~~~~~~~~ /usr/local/lib/gcc8/include/c++/bits/hashtable.h:413:7: error: use of deleted function 'std::__detail::_Hashtable_base<_Key, _Value, _ExtractKey, _Equal, _H1, _H2, _Hash, _Traits>::_Hashtable_base() [with _Key = VID; _Value = std::pair<const VID, unsigned int>; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to<VID>; _H1 = std::hash<VID>; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _Traits = std::__detail::_Hashtable_traits<true, false, true>]' In file included from /usr/local/lib/gcc8/include/c++/bits/hashtable.h:35, from /usr/local/lib/gcc8/include/c++/unordered_map:46, from /usr/local/lib/gcc8/include/c++/functional:61, from ../../../Extern/include/boost/config/no_tr1/functional.hpp:21, from ../../../Extern/include/boost/smart_ptr/intrusive_ptr.hpp:24, from ../../../Extern/include/boost/intrusive_ptr.hpp:16, from event.h:10, from stdafx.h:40, from BattleArena.cpp:1: /usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1824:5: note: 'std::__detail::_Hashtable_base<_Key, _Value, _ExtractKey, _Equal, _H1, _H2, _Hash, _Traits>::_Hashtable_base() [with _Key = VID; _Value = std::pair<const VID, unsigned int>; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to<VID>; _H1 = std::hash<VID>; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _Traits = std::__detail::_Hashtable_traits<true, false, true>]' is implicitly deleted because the default definition would be ill-formed: _Hashtable_base() = default; ^~~~~~~~~~~~~~~ /usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1824:5: error: use of deleted function 'std::__detail::_Hash_code_base<_Key, _Value, _ExtractKey, _H1, _H2, std::__detail::_Default_ranged_hash, true>::_Hash_code_base() [with _Key = VID; _Value = std::pair<const VID, unsigned int>; _ExtractKey = std::__detail::_Select1st; _H1 = std::hash<VID>; _H2 = std::__detail::_Mod_range_hashing]' /usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1379:7: note: 'std::__detail::_Hash_code_base<_Key, _Value, _ExtractKey, _H1, _H2, std::__detail::_Default_ranged_hash, true>::_Hash_code_base() [with _Key = VID; _Value = std::pair<const VID, unsigned int>; _ExtractKey = std::__detail::_Select1st; _H1 = std::hash<VID>; _H2 = std::__detail::_Mod_range_hashing]' is implicitly deleted because the default definition would be ill-formed: _Hash_code_base() = default; ^~~~~~~~~~~~~~~ /usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1379:7: error: use of deleted function 'std::__detail::_Hashtable_ebo_helper<_Nm, _Tp, true>::_Hashtable_ebo_helper() [with int _Nm = 1; _Tp = std::hash<VID>]' /usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1106:7: note: 'std::__detail::_Hashtable_ebo_helper<_Nm, _Tp, true>::_Hashtable_ebo_helper() [with int _Nm = 1; _Tp = std::hash<VID>]' is implicitly deleted because the default definition would be ill-formed: _Hashtable_ebo_helper() = default; ^~~~~~~~~~~~~~~~~~~~~ /usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1106:7: error: use of deleted function 'std::hash<VID>::hash()' In file included from /usr/local/lib/gcc8/include/c++/string_view:43, from /usr/local/lib/gcc8/include/c++/bits/basic_string.h:48, from /usr/local/lib/gcc8/include/c++/string:52, from /usr/local/lib/gcc8/include/c++/stdexcept:39, from /usr/local/lib/gcc8/include/c++/optional:38, from /usr/local/lib/gcc8/include/c++/bits/node_handle.h:39, from /usr/local/lib/gcc8/include/c++/bits/stl_tree.h:72, from /usr/local/lib/gcc8/include/c++/map:60, from stdafx.h:19, from BattleArena.cpp:1: /usr/local/lib/gcc8/include/c++/bits/functional_hash.h:101:12: note: 'std::hash<VID>::hash()' is implicitly deleted because the default definition would be ill-formed: struct hash : __hash_enum<_Tp> ^~~~ /usr/local/lib/gcc8/include/c++/bits/functional_hash.h:101:12: error: no matching function for call to 'std::__hash_enum<VID, false>::__hash_enum()' /usr/local/lib/gcc8/include/c++/bits/functional_hash.h:82:7: note: candidate: 'std::__hash_enum<_Tp, <anonymous> >::__hash_enum(std::__hash_enum<_Tp, <anonymous> >&&) [with _Tp = VID; bool <anonymous> = false]' __hash_enum(__hash_enum&&); ^~~~~~~~~~~ /usr/local/lib/gcc8/include/c++/bits/functional_hash.h:82:7: note: candidate expects 1 argument, 0 provided /usr/local/lib/gcc8/include/c++/bits/functional_hash.h:101:12: error: 'std::__hash_enum<_Tp, <anonymous> >::~__hash_enum() [with _Tp = VID; bool <anonymous> = false]' is private within this context struct hash : __hash_enum<_Tp> ^~~~ /usr/local/lib/gcc8/include/c++/bits/functional_hash.h:83:7: note: declared private here ~__hash_enum(); ^ In file included from /usr/local/lib/gcc8/include/c++/bits/hashtable.h:35, from /usr/local/lib/gcc8/include/c++/unordered_map:46, from /usr/local/lib/gcc8/include/c++/functional:61, from ../../../Extern/include/boost/config/no_tr1/functional.hpp:21, from ../../../Extern/include/boost/smart_ptr/intrusive_ptr.hpp:24, from ../../../Extern/include/boost/intrusive_ptr.hpp:16, from event.h:10, from stdafx.h:40, from BattleArena.cpp:1: /usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1106:7: error: use of deleted function 'std::hash<VID>::~hash()' _Hashtable_ebo_helper() = default; ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/local/lib/gcc8/include/c++/string_view:43, from /usr/local/lib/gcc8/include/c++/bits/basic_string.h:48, from /usr/local/lib/gcc8/include/c++/string:52, from /usr/local/lib/gcc8/include/c++/stdexcept:39, from /usr/local/lib/gcc8/include/c++/optional:38, from /usr/local/lib/gcc8/include/c++/bits/node_handle.h:39, from /usr/local/lib/gcc8/include/c++/bits/stl_tree.h:72, from /usr/local/lib/gcc8/include/c++/map:60, from stdafx.h:19, from BattleArena.cpp:1: /usr/local/lib/gcc8/include/c++/bits/functional_hash.h:101:12: note: 'std::hash<VID>::~hash()' is implicitly deleted because the default definition would be ill-formed: struct hash : __hash_enum<_Tp> ^~~~ /usr/local/lib/gcc8/include/c++/bits/functional_hash.h:101:12: error: 'std::__hash_enum<_Tp, <anonymous> >::~__hash_enum() [with _Tp = VID; bool <anonymous> = false]' is private within this context /usr/local/lib/gcc8/include/c++/bits/functional_hash.h:83:7: note: declared private here ~__hash_enum(); ^ In file included from /usr/local/lib/gcc8/include/c++/bits/hashtable.h:35, from /usr/local/lib/gcc8/include/c++/unordered_map:46, from /usr/local/lib/gcc8/include/c++/functional:61, from ../../../Extern/include/boost/config/no_tr1/functional.hpp:21, from ../../../Extern/include/boost/smart_ptr/intrusive_ptr.hpp:24, from ../../../Extern/include/boost/intrusive_ptr.hpp:16, from event.h:10, from stdafx.h:40, from BattleArena.cpp:1: /usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1379:7: error: use of deleted function 'std::__detail::_Hashtable_ebo_helper<1, std::hash<VID>, true>::~_Hashtable_ebo_helper()' _Hash_code_base() = default; ^~~~~~~~~~~~~~~ /usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1103:12: note: 'std::__detail::_Hashtable_ebo_helper<1, std::hash<VID>, true>::~_Hashtable_ebo_helper()' is implicitly deleted because the default definition would be ill-formed: struct _Hashtable_ebo_helper<_Nm, _Tp, true> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1103:12: error: use of deleted function 'std::hash<VID>::~hash()' /usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1824:5: error: use of deleted function 'std::__detail::_Hash_code_base<VID, std::pair<const VID, unsigned int>, std::__detail::_Select1st, std::hash<VID>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, true>::~_Hash_code_base()' _Hashtable_base() = default; ^~~~~~~~~~~~~~~ /usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1352:12: note: 'std::__detail::_Hash_code_base<VID, std::pair<const VID, unsigned int>, std::__detail::_Select1st, std::hash<VID>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, true>::~_Hash_code_base()' is implicitly deleted because the default definition would be ill-formed: struct _Hash_code_base<_Key, _Value, _ExtractKey, _H1, _H2, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _Default_ranged_hash, true> ~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1352:12: error: use of deleted function 'std::__detail::_Hashtable_ebo_helper<1, std::hash<VID>, true>::~_Hashtable_ebo_helper()' In file included from /usr/local/lib/gcc8/include/c++/unordered_map:46, from /usr/local/lib/gcc8/include/c++/functional:61, from ../../../Extern/include/boost/config/no_tr1/functional.hpp:21, from ../../../Extern/include/boost/smart_ptr/intrusive_ptr.hpp:24, from ../../../Extern/include/boost/intrusive_ptr.hpp:16, from event.h:10, from stdafx.h:40, from BattleArena.cpp:1: /usr/local/lib/gcc8/include/c++/bits/hashtable.h:413:7: error: use of deleted function 'std::__detail::_Hashtable_base<VID, std::pair<const VID, unsigned int>, std::__detail::_Select1st, std::equal_to<VID>, std::hash<VID>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Hashtable_traits<true, false, true> >::~_Hashtable_base()' _Hashtable() = default; ^~~~~~~~~~ In file included from /usr/local/lib/gcc8/include/c++/bits/hashtable.h:35, from /usr/local/lib/gcc8/include/c++/unordered_map:46, from /usr/local/lib/gcc8/include/c++/functional:61, from ../../../Extern/include/boost/config/no_tr1/functional.hpp:21, from ../../../Extern/include/boost/smart_ptr/intrusive_ptr.hpp:24, from ../../../Extern/include/boost/intrusive_ptr.hpp:16, from event.h:10, from stdafx.h:40, from BattleArena.cpp:1: /usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1772:10: note: 'std::__detail::_Hashtable_base<VID, std::pair<const VID, unsigned int>, std::__detail::_Select1st, std::equal_to<VID>, std::hash<VID>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Hashtable_traits<true, false, true> >::~_Hashtable_base()' is implicitly deleted because the default definition would be ill-formed: struct _Hashtable_base ^~~~~~~~~~~~~~~ /usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1772:10: error: use of deleted function 'std::__detail::_Hash_code_base<VID, std::pair<const VID, unsigned int>, std::__detail::_Select1st, std::hash<VID>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, true>::~_Hash_code_base()' In file included from /usr/local/lib/gcc8/include/c++/unordered_map:46, from /usr/local/lib/gcc8/include/c++/functional:61, from ../../../Extern/include/boost/config/no_tr1/functional.hpp:21, from ../../../Extern/include/boost/smart_ptr/intrusive_ptr.hpp:24, from ../../../Extern/include/boost/intrusive_ptr.hpp:16, from event.h:10, from stdafx.h:40, from BattleArena.cpp:1: /usr/local/lib/gcc8/include/c++/bits/hashtable.h: In instantiation of 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::~_Hashtable() [with _Key = VID; _Value = std::pair<const VID, unsigned int>; _Alloc = std::allocator<std::pair<const VID, unsigned int> >; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to<VID>; _H1 = std::hash<VID>; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits<true, false, true>]': /usr/local/lib/gcc8/include/c++/bits/unordered_map.h:102:11: required from here /usr/local/lib/gcc8/include/c++/bits/hashtable.h:1373:5: error: use of deleted function 'std::__detail::_Hashtable_base<VID, std::pair<const VID, unsigned int>, std::__detail::_Select1st, std::equal_to<VID>, std::hash<VID>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Hashtable_traits<true, false, true> >::~_Hashtable_base()' } ^ gmake[1]: *** [Makefile:104: OBJDIR_GAME/BattleArena.o] Error 1
  16. Can someone update the download links? Thanks
  17. There's your problem buddy, some other process is using your port. If you installed a new version of mysql-server make sure it is the only version of mysql in your system. If you installed mysqlXX-client make sure server and client are the same version and that it's the only version in your system. If none of these gets the job done, rename /var/db/mysql folder, deinstall every instance of mysql-server/client and then reinstall your desired version of server (and client if you wish), start the service, stop it, delete /var/db/mysql (newly created) and recover your old folder's name back to original. Then without starting the service again hit reboot and that should do it Best regards
  18. UPDATE: So I updated my enviroment: FreeBSD 11.2 i386 with gcc8 installed and the latest clang, gmake, makedepend and pyhton built from the ports. Now the errors have changed as below: gmake[1]: Entering directory '/usr/src/NEW/Server/game/src' compile OXEvent.cpp In file included from /usr/local/lib/gcc8/include/c++/unordered_map:46, from questmanager.h:4, from OXEvent.cpp:4: /usr/local/lib/gcc8/include/c++/bits/hashtable.h: In instantiation of 'class std::_Hashtable<VID, std::pair<const VID, unsigned int>, std::allocator<std::pair<const VID, unsigned int> >, std::__detail::_Select1st, std::equal_to<VID>, std::hash<VID>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<true, false, true> >': /usr/local/lib/gcc8/include/c++/bits/unordered_map.h:105:18: required from 'class std::unordered_map<VID, unsigned int>' char.h:572:34: required from here /usr/local/lib/gcc8/include/c++/bits/hashtable.h:195:21: error: static assertion failed: hash function must be invocable with an argument of key type static_assert(__is_invocable<const _H1&, const _Key&>{}, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from OXEvent.cpp:9: char.h: In constructor 'TSkillUseInfo::TSkillUseInfo()': char.h:576:32: error: use of deleted function 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map() [with _Key = VID; _Tp = unsigned int; _Hash = std::hash<VID>; _Pred = std::equal_to<VID>; _Alloc = std::allocator<std::pair<const VID, unsigned int> >]' dwVID(0), isGrandMaster(false) ^ In file included from /usr/local/lib/gcc8/include/c++/unordered_map:47, from questmanager.h:4, from OXEvent.cpp:4: /usr/local/lib/gcc8/include/c++/bits/unordered_map.h:141:7: note: 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map() [with _Key = VID; _Tp = unsigned int; _Hash = std::hash<VID>; _Pred = std::equal_to<VID>; _Alloc = std::allocator<std::pair<const VID, unsigned int> >]' is implicitly deleted because the default definition would be ill-formed: unordered_map() = default; ^~~~~~~~~~~~~ /usr/local/lib/gcc8/include/c++/bits/unordered_map.h:141:7: error: use of deleted function 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::_Hashtable() [with _Key = VID; _Value = std::pair<const VID, unsigned int>; _Alloc = std::allocator<std::pair<const VID, unsigned int> >; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to<VID>; _H1 = std::hash<VID>; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits<true, false, true>]' In file included from /usr/local/lib/gcc8/include/c++/unordered_map:46, from questmanager.h:4, from OXEvent.cpp:4: /usr/local/lib/gcc8/include/c++/bits/hashtable.h:413:7: note: 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::_Hashtable() [with _Key = VID; _Value = std::pair<const VID, unsigned int>; _Alloc = std::allocator<std::pair<const VID, unsigned int> >; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to<VID>; _H1 = std::hash<VID>; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits<true, false, true>]' is implicitly deleted because the default definition would be ill-formed: _Hashtable() = default; ^~~~~~~~~~ /usr/local/lib/gcc8/include/c++/bits/hashtable.h:413:7: error: use of deleted function 'std::__detail::_Hashtable_base<_Key, _Value, _ExtractKey, _Equal, _H1, _H2, _Hash, _Traits>::_Hashtable_base() [with _Key = VID; _Value = std::pair<const VID, unsigned int>; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to<VID>; _H1 = std::hash<VID>; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _Traits = std::__detail::_Hashtable_traits<true, false, true>]' In file included from /usr/local/lib/gcc8/include/c++/bits/hashtable.h:35, from /usr/local/lib/gcc8/include/c++/unordered_map:46, from questmanager.h:4, from OXEvent.cpp:4: /usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1824:5: note: 'std::__detail::_Hashtable_base<_Key, _Value, _ExtractKey, _Equal, _H1, _H2, _Hash, _Traits>::_Hashtable_base() [with _Key = VID; _Value = std::pair<const VID, unsigned int>; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to<VID>; _H1 = std::hash<VID>; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _Traits = std::__detail::_Hashtable_traits<true, false, true>]' is implicitly deleted because the default definition would be ill-formed: _Hashtable_base() = default; ^~~~~~~~~~~~~~~ /usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1824:5: error: use of deleted function 'std::__detail::_Hash_code_base<_Key, _Value, _ExtractKey, _H1, _H2, std::__detail::_Default_ranged_hash, true>::_Hash_code_base() [with _Key = VID; _Value = std::pair<const VID, unsigned int>; _ExtractKey = std::__detail::_Select1st; _H1 = std::hash<VID>; _H2 = std::__detail::_Mod_range_hashing]' /usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1379:7: note: 'std::__detail::_Hash_code_base<_Key, _Value, _ExtractKey, _H1, _H2, std::__detail::_Default_ranged_hash, true>::_Hash_code_base() [with _Key = VID; _Value = std::pair<const VID, unsigned int>; _ExtractKey = std::__detail::_Select1st; _H1 = std::hash<VID>; _H2 = std::__detail::_Mod_range_hashing]' is implicitly deleted because the default definition would be ill-formed: _Hash_code_base() = default; ^~~~~~~~~~~~~~~ /usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1379:7: error: use of deleted function 'std::__detail::_Hashtable_ebo_helper<_Nm, _Tp, true>::_Hashtable_ebo_helper() [with int _Nm = 1; _Tp = std::hash<VID>]' /usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1106:7: note: 'std::__detail::_Hashtable_ebo_helper<_Nm, _Tp, true>::_Hashtable_ebo_helper() [with int _Nm = 1; _Tp = std::hash<VID>]' is implicitly deleted because the default definition would be ill-formed: _Hashtable_ebo_helper() = default; ^~~~~~~~~~~~~~~~~~~~~ /usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1106:7: error: use of deleted function 'std::hash<VID>::hash()' In file included from /usr/local/lib/gcc8/include/c++/bits/basic_string.h:6617, from /usr/local/lib/gcc8/include/c++/string:52, from /usr/local/lib/gcc8/include/c++/stdexcept:39, from /usr/local/lib/gcc8/include/c++/array:39, from /usr/local/lib/gcc8/include/c++/tuple:39, from /usr/local/lib/gcc8/include/c++/bits/stl_map.h:63, from /usr/local/lib/gcc8/include/c++/map:61, from stdafx.h:19, from OXEvent.cpp:1: /usr/local/lib/gcc8/include/c++/bits/functional_hash.h:101:12: note: 'std::hash<VID>::hash()' is implicitly deleted because the default definition would be ill-formed: struct hash : __hash_enum<_Tp> ^~~~ /usr/local/lib/gcc8/include/c++/bits/functional_hash.h:101:12: error: no matching function for call to 'std::__hash_enum<VID, false>::__hash_enum()' /usr/local/lib/gcc8/include/c++/bits/functional_hash.h:82:7: note: candidate: 'std::__hash_enum<_Tp, <anonymous> >::__hash_enum(std::__hash_enum<_Tp, <anonymous> >&&) [with _Tp = VID; bool <anonymous> = false]' __hash_enum(__hash_enum&&); ^~~~~~~~~~~ /usr/local/lib/gcc8/include/c++/bits/functional_hash.h:82:7: note: candidate expects 1 argument, 0 provided /usr/local/lib/gcc8/include/c++/bits/functional_hash.h:101:12: error: 'std::__hash_enum<_Tp, <anonymous> >::~__hash_enum() [with _Tp = VID; bool <anonymous> = false]' is private within this context struct hash : __hash_enum<_Tp> ^~~~ /usr/local/lib/gcc8/include/c++/bits/functional_hash.h:83:7: note: declared private here ~__hash_enum(); ^ In file included from /usr/local/lib/gcc8/include/c++/bits/hashtable.h:35, from /usr/local/lib/gcc8/include/c++/unordered_map:46, from questmanager.h:4, from OXEvent.cpp:4: /usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1106:7: error: use of deleted function 'std::hash<VID>::~hash()' _Hashtable_ebo_helper() = default; ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/local/lib/gcc8/include/c++/bits/basic_string.h:6617, from /usr/local/lib/gcc8/include/c++/string:52, from /usr/local/lib/gcc8/include/c++/stdexcept:39, from /usr/local/lib/gcc8/include/c++/array:39, from /usr/local/lib/gcc8/include/c++/tuple:39, from /usr/local/lib/gcc8/include/c++/bits/stl_map.h:63, from /usr/local/lib/gcc8/include/c++/map:61, from stdafx.h:19, from OXEvent.cpp:1: /usr/local/lib/gcc8/include/c++/bits/functional_hash.h:101:12: note: 'std::hash<VID>::~hash()' is implicitly deleted because the default definition would be ill-formed: struct hash : __hash_enum<_Tp> ^~~~ /usr/local/lib/gcc8/include/c++/bits/functional_hash.h:101:12: error: 'std::__hash_enum<_Tp, <anonymous> >::~__hash_enum() [with _Tp = VID; bool <anonymous> = false]' is private within this context /usr/local/lib/gcc8/include/c++/bits/functional_hash.h:83:7: note: declared private here ~__hash_enum(); ^ In file included from /usr/local/lib/gcc8/include/c++/bits/hashtable.h:35, from /usr/local/lib/gcc8/include/c++/unordered_map:46, from questmanager.h:4, from OXEvent.cpp:4: /usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1379:7: error: use of deleted function 'std::__detail::_Hashtable_ebo_helper<1, std::hash<VID>, true>::~_Hashtable_ebo_helper()' _Hash_code_base() = default; ^~~~~~~~~~~~~~~ /usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1103:12: note: 'std::__detail::_Hashtable_ebo_helper<1, std::hash<VID>, true>::~_Hashtable_ebo_helper()' is implicitly deleted because the default definition would be ill-formed: struct _Hashtable_ebo_helper<_Nm, _Tp, true> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1103:12: error: use of deleted function 'std::hash<VID>::~hash()' /usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1824:5: error: use of deleted function 'std::__detail::_Hash_code_base<VID, std::pair<const VID, unsigned int>, std::__detail::_Select1st, std::hash<VID>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, true>::~_Hash_code_base()' _Hashtable_base() = default; ^~~~~~~~~~~~~~~ /usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1352:12: note: 'std::__detail::_Hash_code_base<VID, std::pair<const VID, unsigned int>, std::__detail::_Select1st, std::hash<VID>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, true>::~_Hash_code_base()' is implicitly deleted because the default definition would be ill-formed: struct _Hash_code_base<_Key, _Value, _ExtractKey, _H1, _H2, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _Default_ranged_hash, true> ~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1352:12: error: use of deleted function 'std::__detail::_Hashtable_ebo_helper<1, std::hash<VID>, true>::~_Hashtable_ebo_helper()' In file included from /usr/local/lib/gcc8/include/c++/unordered_map:46, from questmanager.h:4, from OXEvent.cpp:4: /usr/local/lib/gcc8/include/c++/bits/hashtable.h:413:7: error: use of deleted function 'std::__detail::_Hashtable_base<VID, std::pair<const VID, unsigned int>, std::__detail::_Select1st, std::equal_to<VID>, std::hash<VID>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Hashtable_traits<true, false, true> >::~_Hashtable_base()' _Hashtable() = default; ^~~~~~~~~~ In file included from /usr/local/lib/gcc8/include/c++/bits/hashtable.h:35, from /usr/local/lib/gcc8/include/c++/unordered_map:46, from questmanager.h:4, from OXEvent.cpp:4: /usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1772:10: note: 'std::__detail::_Hashtable_base<VID, std::pair<const VID, unsigned int>, std::__detail::_Select1st, std::equal_to<VID>, std::hash<VID>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Hashtable_traits<true, false, true> >::~_Hashtable_base()' is implicitly deleted because the default definition would be ill-formed: struct _Hashtable_base ^~~~~~~~~~~~~~~ /usr/local/lib/gcc8/include/c++/bits/hashtable_policy.h:1772:10: error: use of deleted function 'std::__detail::_Hash_code_base<VID, std::pair<const VID, unsigned int>, std::__detail::_Select1st, std::hash<VID>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, true>::~_Hash_code_base()' In file included from desc.h:7, from OXEvent.cpp:12: cipher.h: In member function 'void Cipher::Encrypt(void*, size_t)': cipher.h:31:59: error: ISO C++ forbids declaration of 'type name' with no type -fpermissive] encoder_->ProcessData((CryptoPP::byte*)buffer, (const byte*)buffer, length); ^~~~ cipher.h:31:53: error: expected primary-expression before 'const' encoder_->ProcessData((CryptoPP::byte*)buffer, (const byte*)buffer, length); ^~~~~ cipher.h:31:53: error: expected ')' before 'const' encoder_->ProcessData((CryptoPP::byte*)buffer, (const byte*)buffer, length); ~^~~~~ ) cipher.h: In member function 'void Cipher::Decrypt(void*, size_t)': cipher.h:39:59: error: ISO C++ forbids declaration of 'type name' with no type -fpermissive] decoder_->ProcessData((CryptoPP::byte*)buffer, (const byte*)buffer, length); ^~~~ cipher.h:39:53: error: expected primary-expression before 'const' decoder_->ProcessData((CryptoPP::byte*)buffer, (const byte*)buffer, length); ^~~~~ cipher.h:39:53: error: expected ')' before 'const' decoder_->ProcessData((CryptoPP::byte*)buffer, (const byte*)buffer, length); ~^~~~~ ) In file included from /usr/local/lib/gcc8/include/c++/unordered_map:46, from questmanager.h:4, from OXEvent.cpp:4: /usr/local/lib/gcc8/include/c++/bits/hashtable.h: In instantiation of 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::~_Hashtable() [with _Key = VID; _Value = std::pair<const VID, unsigned int>; _Alloc = std::allocator<std::pair<const VID, unsigned int> >; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to<VID>; _H1 = std::hash<VID>; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits<true, false, true>]': /usr/local/lib/gcc8/include/c++/bits/unordered_map.h:102:11: required from here /usr/local/lib/gcc8/include/c++/bits/hashtable.h:1373:5: error: use of deleted function 'std::__detail::_Hashtable_base<VID, std::pair<const VID, unsigned int>, std::__detail::_Select1st, std::equal_to<VID>, std::hash<VID>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Hashtable_traits<true, false, true> >::~_Hashtable_base()' } ^ gmake[1]: *** [Makefile:104: OBJDIR_GAME/OXEvent.o] Error 1 gmake[1]: Leaving directory '/usr/src/NEW/Server/game/src' gmake: *** [Makefile:82: all] Error 2 I am trying my best here but I don't seem to get it. I would appreciate any help that will get me closer to fix all these because I see some solid upgrade guides on how to make a more modern core build and I would like to help people struggling with them to make it work. It's a shame to live in 2018 and use obsolete systems, compilers, sources. Best regards
  19. I did that it only needed to change 2 lines... Errors still remain: In file included from /usr/local/lib/gcc49/include/c++/bits/hashtable.h:35:0, from /usr/local/lib/gcc49/include/c++/unordered_map:47, from questmanager.h:4, from OXEvent.cpp:4: /usr/local/lib/gcc49/include/c++/bits/hashtable_policy.h: In instantiation of 'struct std::__detail::__is_noexcept_hash<VID, std::hash<VID> >': /usr/local/lib/gcc49/include/c++/type_traits:134:12: required from 'struct std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > >' /usr/local/lib/gcc49/include/c++/type_traits:145:38: required from 'struct std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:100:66: required from 'class std::unordered_map<VID, unsigned int>' char.h:572:34: required from here /usr/local/lib/gcc49/include/c++/bits/hashtable_policy.h:85:33: error: no match for call to '(const std::hash<VID>) (const VID&)' noexcept(declval<const _Hash&>()(declval<const _Key&>()))> ^ In file included from /usr/local/lib/gcc49/include/c++/bits/move.h:57:0, from /usr/local/lib/gcc49/include/c++/bits/stl_pair.h:59, from /usr/local/lib/gcc49/include/c++/utility:70, from /usr/local/lib/gcc49/include/c++/algorithm:60, from stdafx.h:16, from OXEvent.cpp:1: /usr/local/lib/gcc49/include/c++/type_traits: In instantiation of 'struct std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >': /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:100:66: required from 'class std::unordered_map<VID, unsigned int>' char.h:572:34: required from here /usr/local/lib/gcc49/include/c++/type_traits:145:38: error: 'value' is not a member of 'std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > >' : public integral_constant<bool, !_Pp::value> ^ In file included from /usr/local/lib/gcc49/include/c++/unordered_map:48:0, from questmanager.h:4, from OXEvent.cpp:4: /usr/local/lib/gcc49/include/c++/bits/unordered_map.h: In instantiation of 'class std::unordered_map<VID, unsigned int>': char.h:572:34: required from here /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:100:66: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' typedef __umap_hashtable<_Key, _Tp, _Hash, _Pred, _Alloc> _Hashtable; ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:107:45: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' typedef typename _Hashtable::key_type key_type; ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:108:47: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' typedef typename _Hashtable::value_type value_type; ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:109:48: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' typedef typename _Hashtable::mapped_type mapped_type; ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:110:43: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' typedef typename _Hashtable::hasher hasher; ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:111:46: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' typedef typename _Hashtable::key_equal key_equal; ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:112:51: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' typedef typename _Hashtable::allocator_type allocator_type; ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:117:45: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' typedef typename _Hashtable::pointer pointer; ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:118:50: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' typedef typename _Hashtable::const_pointer const_pointer; ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:119:47: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' typedef typename _Hashtable::reference reference; ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:120:52: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' typedef typename _Hashtable::const_reference const_reference; ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:121:46: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' typedef typename _Hashtable::iterator iterator; ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:122:51: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' typedef typename _Hashtable::const_iterator const_iterator; ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:123:51: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' typedef typename _Hashtable::local_iterator local_iterator; ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:124:57: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' typedef typename _Hashtable::const_local_iterator const_local_iterator; ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:125:47: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' typedef typename _Hashtable::size_type size_type; ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:126:52: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' typedef typename _Hashtable::difference_type difference_type; ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:242:7: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' operator=(initializer_list<value_type> __l) ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:340:2: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' emplace(_Args&&... __args) ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:392:7: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' insert(const value_type& __x) ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:399:2: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' insert(_Pair&& __x) ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:459:7: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' insert(initializer_list<value_type> __l) ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:604:7: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' equal_range(const key_type& __x) ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:608:7: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' equal_range(const key_type& __x) const ^ In file included from OXEvent.cpp:9:0: char.h: In constructor 'TSkillUseInfo::TSkillUseInfo()': char.h:576:32: error: no matching function for call to 'std::unordered_map<VID, unsigned int>::unordered_map()' dwVID(0), isGrandMaster(false) ^ char.h:576:32: note: candidates are: In file included from /usr/local/lib/gcc49/include/c++/unordered_map:48:0, from questmanager.h:4, from OXEvent.cpp:4: /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:172:7: note: std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map(std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>&&) [with _Key = VID; _Tp = unsigned int; _Hash = std::hash<VID>; _Pred = std::equal_to<VID>; _Alloc = std::allocator<std::pair<const VID, unsigned int> >] unordered_map(unordered_map&&) = default; ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:172:7: note: candidate expects 1 argument, 0 provided /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:169:7: note: std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map(const std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>&) [with _Key = VID; _Tp = unsigned int; _Hash = std::hash<VID>; _Pred = std::equal_to<VID>; _Alloc = std::allocator<std::pair<const VID, unsigned int> >] unordered_map(const unordered_map&) = default; ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:169:7: note: candidate expects 1 argument, 0 provided In file included from desc.h:7:0, from OXEvent.cpp:12: cipher.h: In member function 'void Cipher::Encrypt(void*, size_t)': cipher.h:31:59: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive] encoder_->ProcessData((CryptoPP::byte*)buffer, (const byte*)buffer, length); ^ cipher.h:31:53: error: expected primary-expression before 'const' encoder_->ProcessData((CryptoPP::byte*)buffer, (const byte*)buffer, length); ^ cipher.h:31:53: error: expected ')' before 'const' cipher.h: In member function 'void Cipher::Decrypt(void*, size_t)': cipher.h:39:59: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive] decoder_->ProcessData((CryptoPP::byte*)buffer, (const byte*)buffer, length); ^ cipher.h:39:53: error: expected primary-expression before 'const' decoder_->ProcessData((CryptoPP::byte*)buffer, (const byte*)buffer, length); ^ cipher.h:39:53: error: expected ')' before 'const' gmake[1]: *** [Makefile:104: OBJDIR_GAME/OXEvent.o] Error 1 gmake[1]: Leaving directory '/usr/src/NEW/Server/game/src' gmake: *** [Makefile:82: all] Error 2 I gotta say tho, that (const byte*) thingie really got me curious ? Thanks btw
  20. Ok the most weird thing happened here. First of all thank you for your answer @Mali61. It didn't solve the problem but it helped me figure something out. So I tried to investigate (I'm not too familiar with the source code) until I was stuck in a question: what should I replace with the given functions??? Then I noticed something in the error: from questmanager.h:4, this is the first source file mentioned so I thought let's see what gives the compiler the goosebumps about that line. What I found there was #include <boost/unordered_map.hpp> and then I remembered a comment read in this forum somewhere saying something like and that's when I said BINGO! I made some research and with your helpful comment, the file dissapeard from the error. Now I just need to replace all #include <boost/unordered_map.hpp> with: #include <unordered_map> #include <algorithm> and everywhere saying: boost::unordered_map(... replace with std::unordered_map I hope that's just it but in case it's not, would you mind telling what to replace those functions with? Thank you so much for this spark Best regards EDIT: Ok that totally failed. Now I got a whole new error and I believe it's because of gcc49 (upgrading to 82 hoping it will solve the problem). In case someone has a second opinion here is the error: In file included from /usr/local/lib/gcc49/include/c++/bits/hashtable.h:35:0, from /usr/local/lib/gcc49/include/c++/unordered_map:47, from questmanager.h:4, from OXEvent.cpp:4: /usr/local/lib/gcc49/include/c++/bits/hashtable_policy.h: In instantiation of 'struct std::__detail::__is_noexcept_hash<VID, std::hash<VID> >': /usr/local/lib/gcc49/include/c++/type_traits:134:12: required from 'struct std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > >' /usr/local/lib/gcc49/include/c++/type_traits:145:38: required from 'struct std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:100:66: required from 'class std::unordered_map<VID, unsigned int>' char.h:572:34: required from here /usr/local/lib/gcc49/include/c++/bits/hashtable_policy.h:85:33: error: no match for call to '(const std::hash<VID>) (const VID&)' noexcept(declval<const _Hash&>()(declval<const _Key&>()))> ^ In file included from /usr/local/lib/gcc49/include/c++/bits/move.h:57:0, from /usr/local/lib/gcc49/include/c++/bits/stl_pair.h:59, from /usr/local/lib/gcc49/include/c++/utility:70, from /usr/local/lib/gcc49/include/c++/algorithm:60, from stdafx.h:16, from OXEvent.cpp:1: /usr/local/lib/gcc49/include/c++/type_traits: In instantiation of 'struct std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >': /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:100:66: required from 'class std::unordered_map<VID, unsigned int>' char.h:572:34: required from here /usr/local/lib/gcc49/include/c++/type_traits:145:38: error: 'value' is not a member of 'std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > >' : public integral_constant<bool, !_Pp::value> ^ In file included from /usr/local/lib/gcc49/include/c++/unordered_map:48:0, from questmanager.h:4, from OXEvent.cpp:4: /usr/local/lib/gcc49/include/c++/bits/unordered_map.h: In instantiation of 'class std::unordered_map<VID, unsigned int>': char.h:572:34: required from here /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:100:66: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' typedef __umap_hashtable<_Key, _Tp, _Hash, _Pred, _Alloc> _Hashtable; ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:107:45: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' typedef typename _Hashtable::key_type key_type; ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:108:47: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' typedef typename _Hashtable::value_type value_type; ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:109:48: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' typedef typename _Hashtable::mapped_type mapped_type; ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:110:43: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' typedef typename _Hashtable::hasher hasher; ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:111:46: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' typedef typename _Hashtable::key_equal key_equal; ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:112:51: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' typedef typename _Hashtable::allocator_type allocator_type; ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:117:45: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' typedef typename _Hashtable::pointer pointer; ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:118:50: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' typedef typename _Hashtable::const_pointer const_pointer; ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:119:47: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' typedef typename _Hashtable::reference reference; ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:120:52: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' typedef typename _Hashtable::const_reference const_reference; ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:121:46: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' typedef typename _Hashtable::iterator iterator; ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:122:51: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' typedef typename _Hashtable::const_iterator const_iterator; ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:123:51: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' typedef typename _Hashtable::local_iterator local_iterator; ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:124:57: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' typedef typename _Hashtable::const_local_iterator const_local_iterator; ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:125:47: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' typedef typename _Hashtable::size_type size_type; ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:126:52: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' typedef typename _Hashtable::difference_type difference_type; ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:242:7: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' operator=(initializer_list<value_type> __l) ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:340:2: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' emplace(_Args&&... __args) ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:392:7: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' insert(const value_type& __x) ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:399:2: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' insert(_Pair&& __x) ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:459:7: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' insert(initializer_list<value_type> __l) ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:604:7: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' equal_range(const key_type& __x) ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:608:7: error: 'value' is not a member of 'std::__not_<std::__and_<std::__is_fast_hash<std::hash<VID> >, std::__detail::__is_noexcept_hash<VID, std::hash<VID> > > >' equal_range(const key_type& __x) const ^ In file included from OXEvent.cpp:9:0: char.h: In constructor 'TSkillUseInfo::TSkillUseInfo()': char.h:576:32: error: no matching function for call to 'std::unordered_map<VID, unsigned int>::unordered_map()' dwVID(0), isGrandMaster(false) ^ char.h:576:32: note: candidates are: In file included from /usr/local/lib/gcc49/include/c++/unordered_map:48:0, from questmanager.h:4, from OXEvent.cpp:4: /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:172:7: note: std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map(std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>&&) [with _Key = VID; _Tp = unsigned int; _Hash = std::hash<VID>; _Pred = std::equal_to<VID>; _Alloc = std::allocator<std::pair<const VID, unsigned int> >] unordered_map(unordered_map&&) = default; ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:172:7: note: candidate expects 1 argument, 0 provided /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:169:7: note: std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::unordered_map(const std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>&) [with _Key = VID; _Tp = unsigned int; _Hash = std::hash<VID>; _Pred = std::equal_to<VID>; _Alloc = std::allocator<std::pair<const VID, unsigned int> >] unordered_map(const unordered_map&) = default; ^ /usr/local/lib/gcc49/include/c++/bits/unordered_map.h:169:7: note: candidate expects 1 argument, 0 provided In file included from desc.h:7:0, from OXEvent.cpp:12: cipher.h: In member function 'void Cipher::Encrypt(void*, size_t)': cipher.h:31:28: error: 'byte' was not declared in this scope encoder_->ProcessData((byte*)buffer, (const byte*)buffer, length); ^ cipher.h:31:28: note: suggested alternative: In file included from ../../../Extern/include/cryptopp/cryptlib.h:102:0, from cipher.h:6, from desc.h:7, from OXEvent.cpp:12: ../../../Extern/include/cryptopp/config.h:237:23: note: 'CryptoPP::byte' typedef unsigned char byte; ^ In file included from desc.h:7:0, from OXEvent.cpp:12: cipher.h:31:33: error: expected primary-expression before ')' token encoder_->ProcessData((byte*)buffer, (const byte*)buffer, length); ^ cipher.h:31:49: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive] encoder_->ProcessData((byte*)buffer, (const byte*)buffer, length); ^ cipher.h:31:43: error: expected primary-expression before 'const' encoder_->ProcessData((byte*)buffer, (const byte*)buffer, length); ^ cipher.h:31:43: error: expected ')' before 'const' cipher.h: In member function 'void Cipher::Decrypt(void*, size_t)': cipher.h:39:28: error: 'byte' was not declared in this scope decoder_->ProcessData((byte*)buffer, (const byte*)buffer, length); ^ cipher.h:39:28: note: suggested alternative: In file included from ../../../Extern/include/cryptopp/cryptlib.h:102:0, from cipher.h:6, from desc.h:7, from OXEvent.cpp:12: ../../../Extern/include/cryptopp/config.h:237:23: note: 'CryptoPP::byte' typedef unsigned char byte; ^ In file included from desc.h:7:0, from OXEvent.cpp:12: cipher.h:39:33: error: expected primary-expression before ')' token decoder_->ProcessData((byte*)buffer, (const byte*)buffer, length); ^ cipher.h:39:49: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive] decoder_->ProcessData((byte*)buffer, (const byte*)buffer, length); ^ cipher.h:39:43: error: expected primary-expression before 'const' decoder_->ProcessData((byte*)buffer, (const byte*)buffer, length); ^ cipher.h:39:43: error: expected ')' before 'const' gmake[1]: *** [Makefile:104: OBJDIR_GAME/OXEvent.o] Error 1 gmake[1]: Leaving directory '/usr/src/NEW/Server/game/src' gmake: *** [Makefile:82: all] Error 2
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.