Jump to content

Compile with GCC48 / C++11 & Optimized Flags


Recommended Posts

compile BattleArena.cpp
In file included from sectree_manager.h:4:0,
                 from BattleArena.cpp:7:
sectree.h:142:4: warnieng: identifier 'decltype' is a keyword in C++11 [-Wc++0x-compat]
    itertype(m_set_entity) it = m_set_entity.begin();
    ^
In file included from ../../../../extern/include/boost/tuple/tuple.hpp:33:0,
                 from ../../../../extern/include/boost/unordered/detail/allocate.hpp:27,
                 from ../../../../extern/include/boost/unordered/detail/buckets.hpp:15,
                 from ../../../../extern/include/boost/unordered/detail/table.hpp:10,
                 from ../../../../extern/include/boost/unordered/detail/equivalent.hpp:14,
                 from ../../../../extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../../extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
../../../../extern/include/boost/tuple/detail/tuple_basic.hpp: In function 'typename boost::tuples::access_traits<typename boost::tuples::element<N, boost::tuples::cons<HT, TT> >::type>::const_type boost::tuples::get(const boost::tuples::cons<HT, TT>&)':
../../../../extern/include/boost/tuple/detail/tuple_basic.hpp:228:45: warning: typedef 'cons_element' locally defined but not used [-Wunused-local-typedefs]
   typedef BOOST_DEDUCED_TYPENAME impl::type cons_element;
                                             ^
In file included from stdafx.h:37:0,
                 from BattleArena.cpp:1:
sectree.h: In member function 'bool SECTREE::for_each_entity_for_find_victim(_Func&)':
typedef.h:105:41: error: there are no arguments to 'decltype' that depend on a template parameter, so a declaration of 'decltype' must be available [-fpermissive]
 #define itertype(v) decltype((v).begin())
                                         ^
sectree.h:142:4: note: in expansion of macro 'itertype'
    itertype(m_set_entity) it = m_set_entity.begin();
    ^
typedef.h:105:41: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
 #define itertype(v) decltype((v).begin())
                                         ^
sectree.h:142:4: note: in expansion of macro 'itertype'
    itertype(m_set_entity) it = m_set_entity.begin();
    ^
In file included from sectree_manager.h:4:0,
                 from BattleArena.cpp:7:
sectree.h:142:27: error: expected ';' before 'it'
    itertype(m_set_entity) it = m_set_entity.begin();
                           ^
sectree.h:144:11: error: 'it' was not declared in this scope
    while (it != m_set_entity.end())
           ^
In file included from stdafx.h:37:0,
                 from BattleArena.cpp:1:
sectree.h: In member function 'void SECTREE::for_each_entity(_Func&)':
typedef.h:105:41: error: there are no arguments to 'decltype' that depend on a template parameter, so a declaration of 'decltype' must be available [-fpermissive]
 #define itertype(v) decltype((v).begin())
                                         ^
sectree.h:189:4: note: in expansion of macro 'itertype'
    itertype(m_set_entity) it = m_set_entity.begin();
    ^
In file included from sectree_manager.h:4:0,
                 from BattleArena.cpp:7:
sectree.h:189:27: error: expected ';' before 'it'
    itertype(m_set_entity) it = m_set_entity.begin();
                           ^
sectree.h:190:12: error: 'it' was not declared in this scope
    for ( ; it != m_set_entity.end(); ++it) {
            ^
In file included from stdafx.h:37:0,
                 from BattleArena.cpp:1:
sectree.h: In instantiation of 'void SECTREE::for_each_entity(_Func&) [with _Func = FCollectEntity]':
sectree_manager.h:79:39:   required from 'void SECTREE_MAP::for_each(Func&) [with Func = FWarpToHome]'
BattleArena.cpp:180:28:   required from here
typedef.h:105:41: error: 'decltype' was not declared in this scope
 #define itertype(v) decltype((v).begin())
                                         ^
sectree.h:189:4: note: in expansion of macro 'itertype'
    itertype(m_set_entity) it = m_set_entity.begin();
    ^
Makefile:121: recipe for target 'OBJDIR/BattleArena.o' failed
gmake: *** [OBJDIR/BattleArena.o] Error 1 

my error

 

Try compile without c++11.

Link to comment
Share on other sites

  • 1 month later...

Nice tutorial, but I receive some errors:

config.cpp:570:3: error: 'unique_ptr' is not a member of 'std'
   std::unique_ptr<SQLMsg> pMsg(AccountDB::instance().DirectQuery(szQuery));
g++49: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead

Somebody can help me?

 

Regards

 

add -std=c++11 flag

and replace -mcpu= with -march=

Link to comment
Share on other sites

  • 1 month later...

For those who have error with 'unique_ptr', you just need to put this in Makefiles from libpoly, libsql, etc, and to compile them again.

-lstdc++ -std=c++11

And for those who really wants to remain without 90% of warnings, just delete

-Wall

from Makefiles.

  • Love 1

"Don't be a scammer. Don't be a hacker. Don't be a motherfucker. Karma is a bitch"

Link to comment
Share on other sites

  • 4 months later...

Help PLZ?


gmake: Warning: File `Makefile' has modification time 8577 s in the future
compile cipher.cpp with g++49 -Wall -fuse-linker-plugin -fuse-ld=gold -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -Wl,-rpath=/usr/local/lib32/metin2 -std=c++11 -static -static-libgcc -static-libstdc++ -Wno-strict-aliasing -g -ggdb -DNDEBUG -ffast-math -funsafe-loop-optimizations -ftracer -fira-loop-pressure -funroll-loops -finline-functions -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-loop-distribution -ftree-partial-pre -ftree-vectorize -ftree-loop-vectorize -ftree-loop-distribute-patterns -ftree-slp-vectorize -fipa-cp-clone -mtune=i686 -march=i686 -mssse3
In file included from ../../../Extern/include/cryptopp/secblock.h:7:0,
                 from ../../../Extern/include/cryptopp/modes.h:8,
                 from cipher.cpp:7:
../../../Extern/include/cryptopp/algparam.h: In instantiation of 'CryptoPP::ConstByteArrayParameter::ConstByteArrayParameter(const T&, bool) [with T = std::basic_string<char>]':
../../../Extern/include/cryptopp/filters.h:793:132:   required from here
../../../Extern/include/cryptopp/misc.h:58:118: warning: unused variable 'cryptopp_assert_26' [-Wunused-variable]
 #define CRYPTOPP_COMPILE_ASSERT_INSTANCE(assertion, instance) static CompileAssert<(assertion)> CRYPTOPP_ASSERT_JOIN(cryptopp_assert_, instance)
                                                                                                                      ^
../../../Extern/include/cryptopp/misc.h:61:39: note: in definition of macro 'CRYPTOPP_DO_ASSERT_JOIN'
 #define CRYPTOPP_DO_ASSERT_JOIN(X, Y) X##Y
                                       ^
../../../Extern/include/cryptopp/misc.h:58:97: note: in expansion of macro 'CRYPTOPP_ASSERT_JOIN'
 #define CRYPTOPP_COMPILE_ASSERT_INSTANCE(assertion, instance) static CompileAssert<(assertion)> CRYPTOPP_ASSERT_JOIN(cryptopp_assert_, instance)
                                                                                                 ^
../../../Extern/include/cryptopp/misc.h:54:44: note: in expansion of macro 'CRYPTOPP_COMPILE_ASSERT_INSTANCE'
 #define CRYPTOPP_COMPILE_ASSERT(assertion) CRYPTOPP_COMPILE_ASSERT_INSTANCE(assertion, __LINE__)
                                            ^
../../../Extern/include/cryptopp/algparam.h:26:9: note: in expansion of macro 'CRYPTOPP_COMPILE_ASSERT'
         CRYPTOPP_COMPILE_ASSERT(sizeof(CPP_TYPENAME T::value_type) == 1);
         ^
In file included from ../../../Extern/include/cryptopp/modes.h:8:0,
                 from cipher.cpp:7:
../../../Extern/include/cryptopp/secblock.h: In instantiation of 'CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer CryptoPP::AllocatorWithCleanup<T, T_Align16>::allocate(CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type, const void*) [with T = unsigned char; bool T_Align16 = false; CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer = unsigned char*; CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type = unsigned int]':
../../../Extern/include/cryptopp/secblock.h:247:25:   required from 'CryptoPP::SecBlock<T, A>::SecBlock(CryptoPP::SecBlock<T, A>::size_type) [with T = unsigned char; A = CryptoPP::AllocatorWithCleanup<unsigned char>; CryptoPP::SecBlock<T, A>::size_type = unsigned int]'
../../../Extern/include/cryptopp/algparam.h:17:2:   required from here
../../../Extern/include/cryptopp/secblock.h:91:14: error: 'CheckSize' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
   CheckSize(n);
              ^
../../../Extern/include/cryptopp/secblock.h:91:14: note: declarations in dependent base 'CryptoPP::AllocatorBase<unsigned char>' are not found by unqualified lookup
../../../Extern/include/cryptopp/secblock.h:91:14: note: use 'this->CheckSize' instead
../../../Extern/include/cryptopp/secblock.h: In instantiation of 'CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer CryptoPP::AllocatorWithCleanup<T, T_Align16>::allocate(CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type, const void*) [with T = unsigned char; bool T_Align16 = true; CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer = unsigned char*; CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type = unsigned int]':
../../../Extern/include/cryptopp/secblock.h:247:25:   required from 'CryptoPP::SecBlock<T, A>::SecBlock(CryptoPP::SecBlock<T, A>::size_type) [with T = unsigned char; A = CryptoPP::AllocatorWithCleanup<unsigned char, true>; CryptoPP::SecBlock<T, A>::size_type = unsigned int]'
../../../Extern/include/cryptopp/modes.h:63:34:   required from here
../../../Extern/include/cryptopp/secblock.h:91:14: error: 'CheckSize' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
../../../Extern/include/cryptopp/secblock.h:91:14: note: declarations in dependent base 'CryptoPP::AllocatorBase<unsigned char>' are not found by unqualified lookup
../../../Extern/include/cryptopp/secblock.h:91:14: note: use 'this->CheckSize' instead
../../../Extern/include/cryptopp/secblock.h: In instantiation of 'CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer CryptoPP::AllocatorWithCleanup<T, T_Align16>::allocate(CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type, const void*) [with T = unsigned int; bool T_Align16 = true; CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer = unsigned int*; CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type = unsigned int]':
../../../Extern/include/cryptopp/secblock.h:249:29:   required from 'CryptoPP::SecBlock<T, A>::SecBlock(const CryptoPP::SecBlock<T, A>&) [with T = unsigned int; A = CryptoPP::AllocatorWithCleanup<unsigned int, true>]'
../../../Extern/include/cryptopp/modarith.h:122:20:   required from here
../../../Extern/include/cryptopp/secblock.h:91:14: error: 'CheckSize' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
../../../Extern/include/cryptopp/secblock.h:91:14: note: declarations in dependent base 'CryptoPP::AllocatorBase<unsigned int>' are not found by unqualified lookup
../../../Extern/include/cryptopp/secblock.h:91:14: note: use 'this->CheckSize' instead
In file included from ../../../Extern/include/cryptopp/modes.h:12:0,
                 from cipher.cpp:7:
../../../Extern/include/cryptopp/algparam.h: In instantiation of 'void CryptoPP::AlgorithmParametersTemplate<T>::MoveInto(void*) const [with T = CryptoPP::RandomNumberGenerator*]':
cipher.cpp:398:1:   required from here
../../../Extern/include/cryptopp/algparam.h:322:35: warning: unused variable 'p' [-Wunused-variable]
   AlgorithmParametersTemplate<T>* p = new(buffer) AlgorithmParametersTemplate<T>(*this);
                                   ^
In file included from ../../../Extern/include/cryptopp/modes.h:8:0,
                 from cipher.cpp:7:
../../../Extern/include/cryptopp/secblock.h: In instantiation of 'CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer CryptoPP::AllocatorWithCleanup<T, T_Align16>::allocate(CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type, const void*) [with T = unsigned int; bool T_Align16 = false; CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer = unsigned int*; CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type = unsigned int]':
../../../Extern/include/cryptopp/secblock.h:247:25:   required from 'CryptoPP::SecBlock<T, A>::SecBlock(CryptoPP::SecBlock<T, A>::size_type) [with T = unsigned int; A = CryptoPP::AllocatorWithCleanup<unsigned int>; CryptoPP::SecBlock<T, A>::size_type = unsigned int]'
../../../Extern/include/cryptopp/rc5.h:22:27:   required from 'CryptoPP::BlockCipherFinal<DIR, BASE>::BlockCipherFinal() [with CryptoPP::CipherDir DIR = (CryptoPP::CipherDir)0u; BASE = CryptoPP::RC5::Enc]'
../../../Extern/include/cryptopp/misc.h:82:7:   required from 'CryptoPP::CipherModeFinalTemplate_CipherHolder<CIPHER, BASE>::CipherModeFinalTemplate_CipherHolder(const byte*, size_t, const byte*) [with CIPHER = CryptoPP::BlockCipherFinal<(CryptoPP::CipherDir)0u, CryptoPP::RC5::Enc>; BASE = CryptoPP::ConcretePolicyHolder<CryptoPP::Empty, CryptoPP::AdditiveCipherTemplate<CryptoPP::AbstractPolicyHolder<CryptoPP::AdditiveCipherAbstractPolicy, CryptoPP::CTR_ModePolicy> > >; byte = unsigned char; size_t = unsigned int]'
cipher.cpp:88:64:   required from 'CryptoPP::SymmetricCipher* BlockCipherDetail<T>::CreateEncoder(const byte*, size_t, const byte*) const [with T = CryptoPP::RC5; byte = unsigned char; size_t = unsigned int]'
cipher.cpp:398:1:   required from here
../../../Extern/include/cryptopp/secblock.h:91:14: error: 'CheckSize' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
   CheckSize(n);
              ^
../../../Extern/include/cryptopp/secblock.h:91:14: note: declarations in dependent base 'CryptoPP::AllocatorBase<unsigned int>' are not found by unqualified lookup
../../../Extern/include/cryptopp/secblock.h:91:14: note: use 'this->CheckSize' instead
In file included from ../../../Extern/include/cryptopp/secblock.h:7:0,
                 from ../../../Extern/include/cryptopp/modes.h:8,
                 from cipher.cpp:7:
../../../Extern/include/cryptopp/misc.h:548:20: warning: 'std::string CryptoPP::StringNarrow(const wchar_t*, bool)' defined but not used [-Wunused-function]
 static std::string StringNarrow(const wchar_t *str, bool throwOnError = true)
                    ^
gmake: *** [OBJDIR/cipher.o] Error 1
root@host:/usr/home/Sources/VANILLA/mainline/game/src #
root@host:/usr/home/Sources/VANILLA/mainline/game/src # gmake
gmake: Warning: File `Makefile' has modification time 8371 s in the future
compile cipher.cpp with g++49 -Wall -fuse-linker-plugin -fuse-ld=gold -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -Wl,-rpath=/usr/local/lib32/metin2 -std=c++11 -static -static-libgcc -static-libstdc++ -Wno-strict-aliasing -g -ggdb -DNDEBUG -ffast-math -funsafe-loop-optimizations -ftracer -fira-loop-pressure -funroll-loops -finline-functions -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-loop-distribution -ftree-partial-pre -ftree-vectorize -ftree-loop-vectorize -ftree-loop-distribute-patterns -ftree-slp-vectorize -fipa-cp-clone -mtune=i686 -march=i686 -mssse3
In file included from ../../../Extern/include/cryptopp/secblock.h:7:0,
                 from ../../../Extern/include/cryptopp/modes.h:8,
                 from cipher.cpp:7:
../../../Extern/include/cryptopp/algparam.h: In instantiation of 'CryptoPP::ConstByteArrayParameter::ConstByteArrayParameter(const T&, bool) [with T = std::basic_string<char>]':
../../../Extern/include/cryptopp/filters.h:793:132:   required from here
../../../Extern/include/cryptopp/misc.h:58:118: warning: unused variable 'cryptopp_assert_26' [-Wunused-variable]
 #define CRYPTOPP_COMPILE_ASSERT_INSTANCE(assertion, instance) static CompileAssert<(assertion)> CRYPTOPP_ASSERT_JOIN(cryptopp_assert_, instance)
                                                                                                                      ^
../../../Extern/include/cryptopp/misc.h:61:39: note: in definition of macro 'CRYPTOPP_DO_ASSERT_JOIN'
 #define CRYPTOPP_DO_ASSERT_JOIN(X, Y) X##Y
                                       ^
../../../Extern/include/cryptopp/misc.h:58:97: note: in expansion of macro 'CRYPTOPP_ASSERT_JOIN'
 #define CRYPTOPP_COMPILE_ASSERT_INSTANCE(assertion, instance) static CompileAssert<(assertion)> CRYPTOPP_ASSERT_JOIN(cryptopp_assert_, instance)
                                                                                                 ^
../../../Extern/include/cryptopp/misc.h:54:44: note: in expansion of macro 'CRYPTOPP_COMPILE_ASSERT_INSTANCE'
 #define CRYPTOPP_COMPILE_ASSERT(assertion) CRYPTOPP_COMPILE_ASSERT_INSTANCE(assertion, __LINE__)
                                            ^
../../../Extern/include/cryptopp/algparam.h:26:9: note: in expansion of macro 'CRYPTOPP_COMPILE_ASSERT'
         CRYPTOPP_COMPILE_ASSERT(sizeof(CPP_TYPENAME T::value_type) == 1);
         ^
In file included from ../../../Extern/include/cryptopp/modes.h:8:0,
                 from cipher.cpp:7:
../../../Extern/include/cryptopp/secblock.h: In instantiation of 'CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer CryptoPP::AllocatorWithCleanup<T, T_Align16>::allocate(CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type, const void*) [with T = unsigned char; bool T_Align16 = false; CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer = unsigned char*; CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type = unsigned int]':
../../../Extern/include/cryptopp/secblock.h:247:25:   required from 'CryptoPP::SecBlock<T, A>::SecBlock(CryptoPP::SecBlock<T, A>::size_type) [with T = unsigned char; A = CryptoPP::AllocatorWithCleanup<unsigned char>; CryptoPP::SecBlock<T, A>::size_type = unsigned int]'
../../../Extern/include/cryptopp/algparam.h:17:2:   required from here
../../../Extern/include/cryptopp/secblock.h:91:14: error: 'CheckSize' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
   CheckSize(n);
              ^
../../../Extern/include/cryptopp/secblock.h:91:14: note: declarations in dependent base 'CryptoPP::AllocatorBase<unsigned char>' are not found by unqualified lookup
../../../Extern/include/cryptopp/secblock.h:91:14: note: use 'this->CheckSize' instead
../../../Extern/include/cryptopp/secblock.h: In instantiation of 'CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer CryptoPP::AllocatorWithCleanup<T, T_Align16>::allocate(CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type, const void*) [with T = unsigned char; bool T_Align16 = true; CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer = unsigned char*; CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type = unsigned int]':
../../../Extern/include/cryptopp/secblock.h:247:25:   required from 'CryptoPP::SecBlock<T, A>::SecBlock(CryptoPP::SecBlock<T, A>::size_type) [with T = unsigned char; A = CryptoPP::AllocatorWithCleanup<unsigned char, true>; CryptoPP::SecBlock<T, A>::size_type = unsigned int]'
../../../Extern/include/cryptopp/modes.h:63:34:   required from here
../../../Extern/include/cryptopp/secblock.h:91:14: error: 'CheckSize' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
../../../Extern/include/cryptopp/secblock.h:91:14: note: declarations in dependent base 'CryptoPP::AllocatorBase<unsigned char>' are not found by unqualified lookup
../../../Extern/include/cryptopp/secblock.h:91:14: note: use 'this->CheckSize' instead
../../../Extern/include/cryptopp/secblock.h: In instantiation of 'CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer CryptoPP::AllocatorWithCleanup<T, T_Align16>::allocate(CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type, const void*) [with T = unsigned int; bool T_Align16 = true; CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer = unsigned int*; CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type = unsigned int]':
../../../Extern/include/cryptopp/secblock.h:249:29:   required from 'CryptoPP::SecBlock<T, A>::SecBlock(const CryptoPP::SecBlock<T, A>&) [with T = unsigned int; A = CryptoPP::AllocatorWithCleanup<unsigned int, true>]'
../../../Extern/include/cryptopp/modarith.h:122:20:   required from here
../../../Extern/include/cryptopp/secblock.h:91:14: error: 'CheckSize' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
../../../Extern/include/cryptopp/secblock.h:91:14: note: declarations in dependent base 'CryptoPP::AllocatorBase<unsigned int>' are not found by unqualified lookup
../../../Extern/include/cryptopp/secblock.h:91:14: note: use 'this->CheckSize' instead
In file included from ../../../Extern/include/cryptopp/modes.h:12:0,
                 from cipher.cpp:7:
../../../Extern/include/cryptopp/algparam.h: In instantiation of 'void CryptoPP::AlgorithmParametersTemplate<T>::MoveInto(void*) const [with T = CryptoPP::RandomNumberGenerator*]':
cipher.cpp:398:1:   required from here
../../../Extern/include/cryptopp/algparam.h:322:35: warning: unused variable 'p' [-Wunused-variable]
   AlgorithmParametersTemplate<T>* p = new(buffer) AlgorithmParametersTemplate<T>(*this);
                                   ^
In file included from ../../../Extern/include/cryptopp/modes.h:8:0,
                 from cipher.cpp:7:
../../../Extern/include/cryptopp/secblock.h: In instantiation of 'CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer CryptoPP::AllocatorWithCleanup<T, T_Align16>::allocate(CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type, const void*) [with T = unsigned int; bool T_Align16 = false; CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer = unsigned int*; CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type = unsigned int]':
../../../Extern/include/cryptopp/secblock.h:247:25:   required from 'CryptoPP::SecBlock<T, A>::SecBlock(CryptoPP::SecBlock<T, A>::size_type) [with T = unsigned int; A = CryptoPP::AllocatorWithCleanup<unsigned int>; CryptoPP::SecBlock<T, A>::size_type = unsigned int]'
../../../Extern/include/cryptopp/rc5.h:22:27:   required from 'CryptoPP::BlockCipherFinal<DIR, BASE>::BlockCipherFinal() [with CryptoPP::CipherDir DIR = (CryptoPP::CipherDir)0u; BASE = CryptoPP::RC5::Enc]'
../../../Extern/include/cryptopp/misc.h:82:7:   required from 'CryptoPP::CipherModeFinalTemplate_CipherHolder<CIPHER, BASE>::CipherModeFinalTemplate_CipherHolder(const byte*, size_t, const byte*) [with CIPHER = CryptoPP::BlockCipherFinal<(CryptoPP::CipherDir)0u, CryptoPP::RC5::Enc>; BASE = CryptoPP::ConcretePolicyHolder<CryptoPP::Empty, CryptoPP::AdditiveCipherTemplate<CryptoPP::AbstractPolicyHolder<CryptoPP::AdditiveCipherAbstractPolicy, CryptoPP::CTR_ModePolicy> > >; byte = unsigned char; size_t = unsigned int]'
cipher.cpp:88:64:   required from 'CryptoPP::SymmetricCipher* BlockCipherDetail<T>::CreateEncoder(const byte*, size_t, const byte*) const [with T = CryptoPP::RC5; byte = unsigned char; size_t = unsigned int]'
cipher.cpp:398:1:   required from here
../../../Extern/include/cryptopp/secblock.h:91:14: error: 'CheckSize' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
   CheckSize(n);
              ^
../../../Extern/include/cryptopp/secblock.h:91:14: note: declarations in dependent base 'CryptoPP::AllocatorBase<unsigned int>' are not found by unqualified lookup
../../../Extern/include/cryptopp/secblock.h:91:14: note: use 'this->CheckSize' instead
In file included from ../../../Extern/include/cryptopp/secblock.h:7:0,
                 from ../../../Extern/include/cryptopp/modes.h:8,
                 from cipher.cpp:7:
../../../Extern/include/cryptopp/misc.h:548:20: warning: 'std::string CryptoPP::StringNarrow(const wchar_t*, bool)' defined but not used [-Wunused-function]
 static std::string StringNarrow(const wchar_t *str, bool throwOnError = true)
                    ^
gmake: *** [OBJDIR/cipher.o] Error 1
root@host:/usr/home/Sources/VANILLA/mainline/game/src #
root@host:/usr/home/Sources/VANILLA/mainline/game/src # gmake
gmake: Warning: File `Makefile' has modification time 8157 s in the future
compile cipher.cpp with g++49 -Wall -fuse-linker-plugin -fuse-ld=gold -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -Wl,-rpath=/usr/local/lib32/metin2 -std=c++11 -static -static-libgcc -static-libstdc++ -Wno-strict-aliasing -g -ggdb -DNDEBUG -ffast-math -funsafe-loop-optimizations -ftracer -fira-loop-pressure -funroll-loops -finline-functions -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-loop-distribution -ftree-partial-pre -ftree-vectorize -ftree-loop-vectorize -ftree-loop-distribute-patterns -ftree-slp-vectorize -fipa-cp-clone -mtune=i686 -march=i686 -mssse3
In file included from ../../../Extern/include/cryptopp/secblock.h:7:0,
                 from ../../../Extern/include/cryptopp/modes.h:8,
                 from cipher.cpp:7:
../../../Extern/include/cryptopp/algparam.h: In instantiation of 'CryptoPP::ConstByteArrayParameter::ConstByteArrayParameter(const T&, bool) [with T = std::basic_string<char>]':
../../../Extern/include/cryptopp/filters.h:793:132:   required from here
../../../Extern/include/cryptopp/misc.h:58:118: warning: unused variable 'cryptopp_assert_26' [-Wunused-variable]
 #define CRYPTOPP_COMPILE_ASSERT_INSTANCE(assertion, instance) static CompileAssert<(assertion)> CRYPTOPP_ASSERT_JOIN(cryptopp_assert_, instance)
                                                                                                                      ^
../../../Extern/include/cryptopp/misc.h:61:39: note: in definition of macro 'CRYPTOPP_DO_ASSERT_JOIN'
 #define CRYPTOPP_DO_ASSERT_JOIN(X, Y) X##Y
                                       ^
../../../Extern/include/cryptopp/misc.h:58:97: note: in expansion of macro 'CRYPTOPP_ASSERT_JOIN'
 #define CRYPTOPP_COMPILE_ASSERT_INSTANCE(assertion, instance) static CompileAssert<(assertion)> CRYPTOPP_ASSERT_JOIN(cryptopp_assert_, instance)
                                                                                                 ^
../../../Extern/include/cryptopp/misc.h:54:44: note: in expansion of macro 'CRYPTOPP_COMPILE_ASSERT_INSTANCE'
 #define CRYPTOPP_COMPILE_ASSERT(assertion) CRYPTOPP_COMPILE_ASSERT_INSTANCE(assertion, __LINE__)
                                            ^
../../../Extern/include/cryptopp/algparam.h:26:9: note: in expansion of macro 'CRYPTOPP_COMPILE_ASSERT'
         CRYPTOPP_COMPILE_ASSERT(sizeof(CPP_TYPENAME T::value_type) == 1);
         ^
In file included from ../../../Extern/include/cryptopp/modes.h:8:0,
                 from cipher.cpp:7:
../../../Extern/include/cryptopp/secblock.h: In instantiation of 'CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer CryptoPP::AllocatorWithCleanup<T, T_Align16>::allocate(CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type, const void*) [with T = unsigned char; bool T_Align16 = false; CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer = unsigned char*; CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type = unsigned int]':
../../../Extern/include/cryptopp/secblock.h:247:25:   required from 'CryptoPP::SecBlock<T, A>::SecBlock(CryptoPP::SecBlock<T, A>::size_type) [with T = unsigned char; A = CryptoPP::AllocatorWithCleanup<unsigned char>; CryptoPP::SecBlock<T, A>::size_type = unsigned int]'
../../../Extern/include/cryptopp/algparam.h:17:2:   required from here
../../../Extern/include/cryptopp/secblock.h:91:14: error: 'CheckSize' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
   CheckSize(n);
              ^
../../../Extern/include/cryptopp/secblock.h:91:14: note: declarations in dependent base 'CryptoPP::AllocatorBase<unsigned char>' are not found by unqualified lookup
../../../Extern/include/cryptopp/secblock.h:91:14: note: use 'this->CheckSize' instead
../../../Extern/include/cryptopp/secblock.h: In instantiation of 'CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer CryptoPP::AllocatorWithCleanup<T, T_Align16>::allocate(CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type, const void*) [with T = unsigned char; bool T_Align16 = true; CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer = unsigned char*; CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type = unsigned int]':
../../../Extern/include/cryptopp/secblock.h:247:25:   required from 'CryptoPP::SecBlock<T, A>::SecBlock(CryptoPP::SecBlock<T, A>::size_type) [with T = unsigned char; A = CryptoPP::AllocatorWithCleanup<unsigned char, true>; CryptoPP::SecBlock<T, A>::size_type = unsigned int]'
../../../Extern/include/cryptopp/modes.h:63:34:   required from here
../../../Extern/include/cryptopp/secblock.h:91:14: error: 'CheckSize' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
../../../Extern/include/cryptopp/secblock.h:91:14: note: declarations in dependent base 'CryptoPP::AllocatorBase<unsigned char>' are not found by unqualified lookup
../../../Extern/include/cryptopp/secblock.h:91:14: note: use 'this->CheckSize' instead
../../../Extern/include/cryptopp/secblock.h: In instantiation of 'CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer CryptoPP::AllocatorWithCleanup<T, T_Align16>::allocate(CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type, const void*) [with T = unsigned int; bool T_Align16 = true; CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer = unsigned int*; CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type = unsigned int]':
../../../Extern/include/cryptopp/secblock.h:249:29:   required from 'CryptoPP::SecBlock<T, A>::SecBlock(const CryptoPP::SecBlock<T, A>&) [with T = unsigned int; A = CryptoPP::AllocatorWithCleanup<unsigned int, true>]'
../../../Extern/include/cryptopp/modarith.h:122:20:   required from here
../../../Extern/include/cryptopp/secblock.h:91:14: error: 'CheckSize' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
../../../Extern/include/cryptopp/secblock.h:91:14: note: declarations in dependent base 'CryptoPP::AllocatorBase<unsigned int>' are not found by unqualified lookup
../../../Extern/include/cryptopp/secblock.h:91:14: note: use 'this->CheckSize' instead
In file included from ../../../Extern/include/cryptopp/modes.h:12:0,
                 from cipher.cpp:7:
../../../Extern/include/cryptopp/algparam.h: In instantiation of 'void CryptoPP::AlgorithmParametersTemplate<T>::MoveInto(void*) const [with T = CryptoPP::RandomNumberGenerator*]':
cipher.cpp:398:1:   required from here
../../../Extern/include/cryptopp/algparam.h:322:35: warning: unused variable 'p' [-Wunused-variable]
   AlgorithmParametersTemplate<T>* p = new(buffer) AlgorithmParametersTemplate<T>(*this);
                                   ^
In file included from ../../../Extern/include/cryptopp/modes.h:8:0,
                 from cipher.cpp:7:
../../../Extern/include/cryptopp/secblock.h: In instantiation of 'CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer CryptoPP::AllocatorWithCleanup<T, T_Align16>::allocate(CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type, const void*) [with T = unsigned int; bool T_Align16 = false; CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer = unsigned int*; CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type = unsigned int]':
../../../Extern/include/cryptopp/secblock.h:247:25:   required from 'CryptoPP::SecBlock<T, A>::SecBlock(CryptoPP::SecBlock<T, A>::size_type) [with T = unsigned int; A = CryptoPP::AllocatorWithCleanup<unsigned int>; CryptoPP::SecBlock<T, A>::size_type = unsigned int]'
../../../Extern/include/cryptopp/rc5.h:22:27:   required from 'CryptoPP::BlockCipherFinal<DIR, BASE>::BlockCipherFinal() [with CryptoPP::CipherDir DIR = (CryptoPP::CipherDir)0u; BASE = CryptoPP::RC5::Enc]'
../../../Extern/include/cryptopp/misc.h:82:7:   required from 'CryptoPP::CipherModeFinalTemplate_CipherHolder<CIPHER, BASE>::CipherModeFinalTemplate_CipherHolder(const byte*, size_t, const byte*) [with CIPHER = CryptoPP::BlockCipherFinal<(CryptoPP::CipherDir)0u, CryptoPP::RC5::Enc>; BASE = CryptoPP::ConcretePolicyHolder<CryptoPP::Empty, CryptoPP::AdditiveCipherTemplate<CryptoPP::AbstractPolicyHolder<CryptoPP::AdditiveCipherAbstractPolicy, CryptoPP::CTR_ModePolicy> > >; byte = unsigned char; size_t = unsigned int]'
cipher.cpp:88:64:   required from 'CryptoPP::SymmetricCipher* BlockCipherDetail<T>::CreateEncoder(const byte*, size_t, const byte*) const [with T = CryptoPP::RC5; byte = unsigned char; size_t = unsigned int]'
cipher.cpp:398:1:   required from here
../../../Extern/include/cryptopp/secblock.h:91:14: error: 'CheckSize' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
   CheckSize(n);
              ^
../../../Extern/include/cryptopp/secblock.h:91:14: note: declarations in dependent base 'CryptoPP::AllocatorBase<unsigned int>' are not found by unqualified lookup
../../../Extern/include/cryptopp/secblock.h:91:14: note: use 'this->CheckSize' instead
In file included from ../../../Extern/include/cryptopp/secblock.h:7:0,
                 from ../../../Extern/include/cryptopp/modes.h:8,
                 from cipher.cpp:7:
../../../Extern/include/cryptopp/misc.h:548:20: warning: 'std::string CryptoPP::StringNarrow(const wchar_t*, bool)' defined but not used [-Wunused-function]
 static std::string StringNarrow(const wchar_t *str, bool throwOnError = true)
                    ^
gmake: *** [OBJDIR/cipher.o] Error 1
root@host:/usr/home/Sources/VANILLA/mainline/game/src # cd /usr/home/Sources/VANILLA/Extern/cryptopp
root@host:/usr/home/Sources/VANILLA/Extern/cryptopp # gmake clean
rm -f cryptest.exe ../lib/libcryptopp.a shacal2.o seed.o nbtheory.o zinflate.o gf2n.o socketft.o oaep.o cryptlib_bds.o zdeflate.o default.o twofish.o safer.o iterhash.o wait.o adler32.o ecp.o filters.o dh2.o ida.o zlib.o elgamal.o crc.o algparam.o gf2_32.o bfinit.o luc.o rijndael.o eax.o network.o sha.o camellia.o emsa2.o pkcspad.o squaretb.o idea.o des.o authenc.o hmac.o gf256.o xtrcrypt.o simple.o mars.o whrlpool.o rc5.o fipstest.o queue.o hrtimer.o square.o hex.o tiger.o dsa.o eprecomp.o fips140.o dll.o dessp.o integer.o files.o base32.o vmac.o blowfish.o sharkbox.o randpool.o esign.o dh.o arc4.o osrng.o skipjack.o wake.o xtr.o sosemanuk.o md2.o ttmac.o cpu.o rabin.o gzip.o 3way.o rdtables.o rsa.o cbcmac.o marss.o tftables.o gost.o md5.o panama.o modes.o strciphr.o casts.o algebra.o cryptlib.o gfpcrypt.o ec2n.o polynomi.o gcm.o basecode.o rc6.o mqueue.o blumshub.o misc.o channels.o rng.o cast.o rw.o winpipes.o asn.o md4.o pssr.o pch.o ccm.o mqv.o tigertab.o rc2.o shark.o seal.o salsa.o trdlocal.o pubkey.o ripemd.o eccrypto.o serpent.o tea.o base64.o cmac.o bench.o bench2.o test.o validat1.o validat2.o validat3.o adhoc.o datatest.o regtest.o fipsalgt.o dlltest.o cryptopp.dll libcryptopp.dll.a libcryptopp.import.a cryptest.import.exe dlltest.exe algebra.export.o algparam.export.o asn.export.o basecode.export.o cbcmac.export.o channels.export.o cryptlib.export.o des.export.o dessp.export.o dh.export.o dll.export.o dsa.export.o ec2n.export.o eccrypto.export.o ecp.export.o eprecomp.export.o files.export.o filters.export.o fips140.export.o fipstest.export.o gf2n.export.o gfpcrypt.export.o hex.export.o hmac.export.o integer.export.o iterhash.export.o misc.export.o modes.export.o modexppc.export.o mqueue.export.o nbtheory.export.o oaep.export.o osrng.export.o pch.export.o pkcspad.export.o pubkey.export.o queue.export.o randpool.export.o rdtables.export.o rijndael.export.o rng.export.o rsa.export.o sha.export.o simple.export.o skipjack.export.o strciphr.export.o trdlocal.export.o shacal2.import.o seed.import.o nbtheory.import.o zinflate.import.o gf2n.import.o socketft.import.o oaep.import.o cryptlib_bds.import.o zdeflate.import.o default.import.o twofish.import.o safer.import.o iterhash.import.o wait.import.o adler32.import.o ecp.import.o filters.import.o dh2.import.o ida.import.o zlib.import.o elgamal.import.o crc.import.o algparam.import.o gf2_32.import.o bfinit.import.o luc.import.o rijndael.import.o eax.import.o network.import.o sha.import.o camellia.import.o emsa2.import.o pkcspad.import.o squaretb.import.o idea.import.o des.import.o authenc.import.o hmac.import.o gf256.import.o xtrcrypt.import.o simple.import.o mars.import.o whrlpool.import.o rc5.import.o fipstest.import.o queue.import.o hrtimer.import.o square.import.o hex.import.o tiger.import.o dsa.import.o eprecomp.import.o fips140.import.o dll.import.o dessp.import.o integer.import.o files.import.o base32.import.o vmac.import.o blowfish.import.o sharkbox.import.o randpool.import.o esign.import.o dh.import.o arc4.import.o osrng.import.o skipjack.import.o wake.import.o xtr.import.o sosemanuk.import.o md2.import.o ttmac.import.o cpu.import.o rabin.import.o gzip.import.o 3way.import.o rdtables.import.o rsa.import.o cbcmac.import.o marss.import.o tftables.import.o gost.import.o md5.import.o panama.import.o modes.import.o strciphr.import.o casts.import.o algebra.import.o cryptlib.import.o gfpcrypt.import.o ec2n.import.o polynomi.import.o gcm.import.o basecode.import.o rc6.import.o mqueue.import.o blumshub.import.o misc.import.o channels.import.o rng.import.o cast.import.o rw.import.o winpipes.import.o asn.import.o md4.import.o pssr.import.o pch.import.o ccm.import.o mqv.import.o tigertab.import.o rc2.import.o shark.import.o seal.import.o salsa.import.o trdlocal.import.o pubkey.import.o ripemd.import.o eccrypto.import.o serpent.import.o tea.import.o base64.import.o cmac.import.o bench.import.o bench2.import.o test.import.o validat1.import.o validat2.import.o validat3.import.o adhoc.import.o datatest.import.o regtest.import.o fipsalgt.import.o dlltest.import.o dlltest.dllonly.o
root@host:/usr/home/Sources/VANILLA/Extern/cryptopp # gmake
g++ -DNDEBUG -g -O2 -I../include/cryptopp -I. -pipe -c shacal2.cpp
g++ -DNDEBUG -g -O2 -I../include/cryptopp -I. -pipe -c seed.cpp
g++ -DNDEBUG -g -O2 -I../include/cryptopp -I. -pipe -c integer.cpp
g++ -DNDEBUG -g -O2 -I../include/cryptopp -I. -pipe -c rc6.cpp
gmake: Warning: File `gf2n.cpp' has modification time 10619 s in the future
g++ -DNDEBUG -g -O2 -I../include/cryptopp -I. -pipe -c gf2n.cpp
g++ -DNDEBUG -g -O2 -I../include/cryptopp -I. -pipe -c md4.cpp
g++ -DNDEBUG -g -O2 -I../include/cryptopp -I. -pipe -c socketft.cpp
g++ -DNDEBUG -g -O2 -I../include/cryptopp -I. -pipe -c xtr.cpp
g++ -DNDEBUG -g -O2 -I../include/cryptopp -I. -pipe -c luc.cpp
g++ -DNDEBUG -g -O2 -I../include/cryptopp -I. -pipe -c sosemanuk.cpp
g++ -DNDEBUG -g -O2 -I../include/cryptopp -I. -pipe -c md2.cpp
g++ -DNDEBUG -g -O2 -I../include/cryptopp -I. -pipe -c fipstest.cpp
fipstest.cpp: In function 'bool CryptoPP::IntegrityCheckModule(const char*, const byte*, CryptoPP::SecByteBlock*, long unsigned int*)':
fipstest.cpp:248: error: '_ptr' is not a member of 'std'
fipstest.cpp:248: error: expected primary-expression before '>' token
fipstest.cpp:248: error: 'mac' was not declared in this scope
gmake: *** [fipstest.o] Error 1
root@host:/usr/home/Sources/VANILLA/Extern/cryptopp # clean
clean: Command not found.
root@host:/usr/home/Sources/VANILLA/Extern/cryptopp # clear
root@host:/usr/home/Sources/VANILLA/Extern/cryptopp # cd /usr/home/Sources/VANILLA/mainline/game/src
root@host:/usr/home/Sources/VANILLA/mainline/game/src # gmake
gmake: Warning: File `Makefile' has modification time 7840 s in the future
compile cipher.cpp with g++49 -Wall -fuse-linker-plugin -fuse-ld=gold -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -Wl,-rpath=/usr/local/lib32/metin2 -std=c++11 -static -static-libgcc -static-libstdc++ -Wno-strict-aliasing -g -ggdb -DNDEBUG -ffast-math -funsafe-loop-optimizations -ftracer -fira-loop-pressure -funroll-loops -finline-functions -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-loop-distribution -ftree-partial-pre -ftree-vectorize -ftree-loop-vectorize -ftree-loop-distribute-patterns -ftree-slp-vectorize -fipa-cp-clone -mtune=i686 -march=i686 -mssse3
In file included from ../../../Extern/include/cryptopp/secblock.h:7:0,
                 from ../../../Extern/include/cryptopp/modes.h:8,
                 from cipher.cpp:7:
../../../Extern/include/cryptopp/algparam.h: In instantiation of 'CryptoPP::ConstByteArrayParameter::ConstByteArrayParameter(const T&, bool) [with T = std::basic_string<char>]':
../../../Extern/include/cryptopp/filters.h:793:132:   required from here
../../../Extern/include/cryptopp/misc.h:58:118: warning: unused variable 'cryptopp_assert_26' [-Wunused-variable]
 #define CRYPTOPP_COMPILE_ASSERT_INSTANCE(assertion, instance) static CompileAssert<(assertion)> CRYPTOPP_ASSERT_JOIN(cryptopp_assert_, instance)
                                                                                                                      ^
../../../Extern/include/cryptopp/misc.h:61:39: note: in definition of macro 'CRYPTOPP_DO_ASSERT_JOIN'
 #define CRYPTOPP_DO_ASSERT_JOIN(X, Y) X##Y
                                       ^
../../../Extern/include/cryptopp/misc.h:58:97: note: in expansion of macro 'CRYPTOPP_ASSERT_JOIN'
 #define CRYPTOPP_COMPILE_ASSERT_INSTANCE(assertion, instance) static CompileAssert<(assertion)> CRYPTOPP_ASSERT_JOIN(cryptopp_assert_, instance)
                                                                                                 ^
../../../Extern/include/cryptopp/misc.h:54:44: note: in expansion of macro 'CRYPTOPP_COMPILE_ASSERT_INSTANCE'
 #define CRYPTOPP_COMPILE_ASSERT(assertion) CRYPTOPP_COMPILE_ASSERT_INSTANCE(assertion, __LINE__)
                                            ^
../../../Extern/include/cryptopp/algparam.h:26:9: note: in expansion of macro 'CRYPTOPP_COMPILE_ASSERT'
         CRYPTOPP_COMPILE_ASSERT(sizeof(CPP_TYPENAME T::value_type) == 1);
         ^
In file included from ../../../Extern/include/cryptopp/modes.h:8:0,
                 from cipher.cpp:7:
../../../Extern/include/cryptopp/secblock.h: In instantiation of 'CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer CryptoPP::AllocatorWithCleanup<T, T_Align16>::allocate(CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type, const void*) [with T = unsigned char; bool T_Align16 = false; CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer = unsigned char*; CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type = unsigned int]':
../../../Extern/include/cryptopp/secblock.h:247:25:   required from 'CryptoPP::SecBlock<T, A>::SecBlock(CryptoPP::SecBlock<T, A>::size_type) [with T = unsigned char; A = CryptoPP::AllocatorWithCleanup<unsigned char>; CryptoPP::SecBlock<T, A>::size_type = unsigned int]'
../../../Extern/include/cryptopp/algparam.h:17:2:   required from here
../../../Extern/include/cryptopp/secblock.h:91:14: error: 'CheckSize' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
   CheckSize(n);
              ^
../../../Extern/include/cryptopp/secblock.h:91:14: note: declarations in dependent base 'CryptoPP::AllocatorBase<unsigned char>' are not found by unqualified lookup
../../../Extern/include/cryptopp/secblock.h:91:14: note: use 'this->CheckSize' instead
../../../Extern/include/cryptopp/secblock.h: In instantiation of 'CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer CryptoPP::AllocatorWithCleanup<T, T_Align16>::allocate(CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type, const void*) [with T = unsigned char; bool T_Align16 = true; CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer = unsigned char*; CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type = unsigned int]':
../../../Extern/include/cryptopp/secblock.h:247:25:   required from 'CryptoPP::SecBlock<T, A>::SecBlock(CryptoPP::SecBlock<T, A>::size_type) [with T = unsigned char; A = CryptoPP::AllocatorWithCleanup<unsigned char, true>; CryptoPP::SecBlock<T, A>::size_type = unsigned int]'
../../../Extern/include/cryptopp/modes.h:63:34:   required from here
../../../Extern/include/cryptopp/secblock.h:91:14: error: 'CheckSize' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
../../../Extern/include/cryptopp/secblock.h:91:14: note: declarations in dependent base 'CryptoPP::AllocatorBase<unsigned char>' are not found by unqualified lookup
../../../Extern/include/cryptopp/secblock.h:91:14: note: use 'this->CheckSize' instead
../../../Extern/include/cryptopp/secblock.h: In instantiation of 'CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer CryptoPP::AllocatorWithCleanup<T, T_Align16>::allocate(CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type, const void*) [with T = unsigned int; bool T_Align16 = true; CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer = unsigned int*; CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type = unsigned int]':
../../../Extern/include/cryptopp/secblock.h:249:29:   required from 'CryptoPP::SecBlock<T, A>::SecBlock(const CryptoPP::SecBlock<T, A>&) [with T = unsigned int; A = CryptoPP::AllocatorWithCleanup<unsigned int, true>]'
../../../Extern/include/cryptopp/modarith.h:122:20:   required from here
../../../Extern/include/cryptopp/secblock.h:91:14: error: 'CheckSize' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
../../../Extern/include/cryptopp/secblock.h:91:14: note: declarations in dependent base 'CryptoPP::AllocatorBase<unsigned int>' are not found by unqualified lookup
../../../Extern/include/cryptopp/secblock.h:91:14: note: use 'this->CheckSize' instead
In file included from ../../../Extern/include/cryptopp/modes.h:12:0,
                 from cipher.cpp:7:
../../../Extern/include/cryptopp/algparam.h: In instantiation of 'void CryptoPP::AlgorithmParametersTemplate<T>::MoveInto(void*) const [with T = CryptoPP::RandomNumberGenerator*]':
cipher.cpp:398:1:   required from here
../../../Extern/include/cryptopp/algparam.h:322:35: warning: unused variable 'p' [-Wunused-variable]
   AlgorithmParametersTemplate<T>* p = new(buffer) AlgorithmParametersTemplate<T>(*this);
                                   ^
In file included from ../../../Extern/include/cryptopp/modes.h:8:0,
                 from cipher.cpp:7:
../../../Extern/include/cryptopp/secblock.h: In instantiation of 'CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer CryptoPP::AllocatorWithCleanup<T, T_Align16>::allocate(CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type, const void*) [with T = unsigned int; bool T_Align16 = false; CryptoPP::AllocatorWithCleanup<T, T_Align16>::pointer = unsigned int*; CryptoPP::AllocatorWithCleanup<T, T_Align16>::size_type = unsigned int]':
../../../Extern/include/cryptopp/secblock.h:247:25:   required from 'CryptoPP::SecBlock<T, A>::SecBlock(CryptoPP::SecBlock<T, A>::size_type) [with T = unsigned int; A = CryptoPP::AllocatorWithCleanup<unsigned int>; CryptoPP::SecBlock<T, A>::size_type = unsigned int]'
../../../Extern/include/cryptopp/rc5.h:22:27:   required from 'CryptoPP::BlockCipherFinal<DIR, BASE>::BlockCipherFinal() [with CryptoPP::CipherDir DIR = (CryptoPP::CipherDir)0u; BASE = CryptoPP::RC5::Enc]'
../../../Extern/include/cryptopp/misc.h:82:7:   required from 'CryptoPP::CipherModeFinalTemplate_CipherHolder<CIPHER, BASE>::CipherModeFinalTemplate_CipherHolder(const byte*, size_t, const byte*) [with CIPHER = CryptoPP::BlockCipherFinal<(CryptoPP::CipherDir)0u, CryptoPP::RC5::Enc>; BASE = CryptoPP::ConcretePolicyHolder<CryptoPP::Empty, CryptoPP::AdditiveCipherTemplate<CryptoPP::AbstractPolicyHolder<CryptoPP::AdditiveCipherAbstractPolicy, CryptoPP::CTR_ModePolicy> > >; byte = unsigned char; size_t = unsigned int]'
cipher.cpp:88:64:   required from 'CryptoPP::SymmetricCipher* BlockCipherDetail<T>::CreateEncoder(const byte*, size_t, const byte*) const [with T = CryptoPP::RC5; byte = unsigned char; size_t = unsigned int]'
cipher.cpp:398:1:   required from here
../../../Extern/include/cryptopp/secblock.h:91:14: error: 'CheckSize' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
   CheckSize(n);
              ^
../../../Extern/include/cryptopp/secblock.h:91:14: note: declarations in dependent base 'CryptoPP::AllocatorBase<unsigned int>' are not found by unqualified lookup
../../../Extern/include/cryptopp/secblock.h:91:14: note: use 'this->CheckSize' instead
In file included from ../../../Extern/include/cryptopp/secblock.h:7:0,
                 from ../../../Extern/include/cryptopp/modes.h:8,
                 from cipher.cpp:7:
../../../Extern/include/cryptopp/misc.h:548:20: warning: 'std::string CryptoPP::StringNarrow(const wchar_t*, bool)' defined but not used [-Wunused-function]
 static std::string StringNarrow(const wchar_t *str, bool throwOnError = true)
                    ^
gmake: *** [OBJDIR/cipher.o] Error 1
Link to comment
Share on other sites

  • 6 months later...
  • 2 years later...
  • 10 months later...

/usr/local/bin/ld: ../../../Extern/lib/libcryptopp.a(cryptlib.o): undefined reference to symbol '_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev'
/usr/local/bin/ld: /usr/lib/libc++.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
gmake: *** [Makefile:135: ../game] Error 1

 

Cryptopp compiled with gcc49 too

???

Link to comment
Share on other sites

  • 1 month later...

Hello there,
i just got that problem when i would compile the game src

compile BattleArena.cpp
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
In file included from /usr/local/lib/gcc48/include/c++/random:50:0,
                 from /usr/local/lib/gcc48/include/c++/bits/stl_algo.h:65,
                 from /usr/local/lib/gcc48/include/c++/algorithm:62,
                 from stdafx.h:15,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc48/include/c++/bits/random.h:35:8: error: expected constructor                  , destructor, or type conversion before '(' token
 defined(_GLIBCXX_USE_INT128)
        ^
In file included from /usr/local/lib/gcc48/include/c++/functional:53:0,
                 from /usr/local/lib/gcc48/include/c++/bits/stl_algo.h:66,
                 from /usr/local/lib/gcc48/include/c++/algorithm:62,
                 from stdafx.h:15,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc48/include/c++/typeinfo:39:37: error: expected declaration bef                  ore end of line
 #pragma GCC visibility push(default)
                                     ^
gmake: *** [Makefile:136: OBJDIR/BattleArena.o] Error 1

Would sy help me ? :D 

 

Hello there,
i just got that problem when i would compile the game src

compile BattleArena.cpp
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
In file included from /usr/local/lib/gcc48/include/c++/random:50:0,
                 from /usr/local/lib/gcc48/include/c++/bits/stl_algo.h:65,
                 from /usr/local/lib/gcc48/include/c++/algorithm:62,
                 from stdafx.h:15,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc48/include/c++/bits/random.h:35:8: error: expected constructor                  , destructor, or type conversion before '(' token
 defined(_GLIBCXX_USE_INT128)
        ^
In file included from /usr/local/lib/gcc48/include/c++/functional:53:0,
                 from /usr/local/lib/gcc48/include/c++/bits/stl_algo.h:66,
                 from /usr/local/lib/gcc48/include/c++/algorithm:62,
                 from stdafx.h:15,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc48/include/c++/typeinfo:39:37: error: expected declaration bef                  ore end of line
 #pragma GCC visibility push(default)
                                     ^
gmake: *** [Makefile:136: OBJDIR/BattleArena.o] Error 1

Would sy help me ? :D 

 

Hello there,
i just got that problem when i would compile the game src

compile BattleArena.cpp
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
In file included from /usr/local/lib/gcc48/include/c++/random:50:0,
                 from /usr/local/lib/gcc48/include/c++/bits/stl_algo.h:65,
                 from /usr/local/lib/gcc48/include/c++/algorithm:62,
                 from stdafx.h:15,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc48/include/c++/bits/random.h:35:8: error: expected constructor                  , destructor, or type conversion before '(' token
 defined(_GLIBCXX_USE_INT128)
        ^
In file included from /usr/local/lib/gcc48/include/c++/functional:53:0,
                 from /usr/local/lib/gcc48/include/c++/bits/stl_algo.h:66,
                 from /usr/local/lib/gcc48/include/c++/algorithm:62,
                 from stdafx.h:15,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc48/include/c++/typeinfo:39:37: error: expected declaration bef                  ore end of line
 #pragma GCC visibility push(default)
                                     ^
gmake: *** [Makefile:136: OBJDIR/BattleArena.o] Error 1

Would sy help me ? :D 

 

Hello there,
i just got that problem when i would compile the game src

compile BattleArena.cpp
g++48: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
In file included from /usr/local/lib/gcc48/include/c++/random:50:0,
                 from /usr/local/lib/gcc48/include/c++/bits/stl_algo.h:65,
                 from /usr/local/lib/gcc48/include/c++/algorithm:62,
                 from stdafx.h:15,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc48/include/c++/bits/random.h:35:8: error: expected constructor                  , destructor, or type conversion before '(' token
 defined(_GLIBCXX_USE_INT128)
        ^
In file included from /usr/local/lib/gcc48/include/c++/functional:53:0,
                 from /usr/local/lib/gcc48/include/c++/bits/stl_algo.h:66,
                 from /usr/local/lib/gcc48/include/c++/algorithm:62,
                 from stdafx.h:15,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc48/include/c++/typeinfo:39:37: error: expected declaration bef                  ore end of line
 #pragma GCC visibility push(default)
                                     ^
gmake: *** [Makefile:136: OBJDIR/BattleArena.o] Error 1

Would sy help me ? :D 

 

Link to comment
Share on other sites

  • 5 months later...

Announcements



×
×
  • 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.