Jump to content

EisTee

Inactive Member
  • Posts

    25
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by EisTee

  1. Is that all ? Exptable ? 

    in main.cpp

    	//pet table
    	string temp_pet_line;
    	char szpetTable[256];snprintf(szpetTable, sizeof(szpetTable), "%s/Pet_Exptable.txt", LocaleService_GetTablePath().c_str());
    	ifstream pet_exp_table_open(szpetTable);
    	if (!pet_exp_table_open.is_open()) {
    		sys_err("Failed to Load [%s]", szpetTable);
    		return;	}	
    	while (!pet_exp_table_open.eof()){
    		pet_exp_table_open >> temp_pet_line;
    		str_to_number(exp_table_pet[exp_pet_counter], temp_pet_line.c_str());
    		exp_pet_counter++;}
    	exp_table_counter = exp_table_counter - 1;
    	exp_pet_counter = exp_pet_counter - 1;

    constants.cpp

    DWORD exp_table_pet[PET_EXP_TABLE_MAX + 1];

    constants.h

    extern	DWORD		exp_table_pet[PET_EXP_TABLE_MAX + 1];

    .. this is how to load exptable

    But how we can enable that the pet can get Level up ?

  2. Hello,

     

    I have a small problem when i want compile the vanilla source

    Error:

     

     

    linking ../game_r54250_32 with g++49 -Wall -ffat-lto-objects -flto -fuse-linker-plugin -O2 -finline-functions -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-partial-pre -fipa-cp-clone -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -Wl,-rpath,/usr/local/lib32/metin2 -std=c++11 -mtune=i686 -mssse3....
    /tmp//ccvLWVvh.ltrans11.ltrans.o: In function `quest::CQuestManager::InitializeLua()':
    <artificial>:(.text+0x639a): undefined reference to `quest::RegisterUniqueFunctionTable()'
    <artificial>:(.text+0x63cc): undefined reference to `quest::RegistermysqlFunctionTable()'
    /tmp//ccvLWVvh.ltrans21.ltrans.o: In function `CryptoPP::ConcretePolicyHolder<CryptoPP::Empty, CryptoPP::AdditiveCipherTemplate<CryptoPP::AbstractPolicyHolder<CryptoPP::AdditiveCipherAbstractPolicy, CryptoPP::CTR_ModePolicy> >, CryptoPP::AdditiveCipherAbstractPolicy>::~ConcretePolicyHolder()':
    <artificial>:(.text+0x961): undefined reference to `CryptoPP::AlignedDeallocate(void*)'
    <artificial>:(.text+0x971): undefined reference to `CryptoPP::AlignedDeallocate(void*)'
    /tmp//ccvLWVvh.ltrans21.ltrans.o: In function `CryptoPP::AlgorithmImpl<CryptoPP::ConcretePolicyHolder<CryptoPP::Empty, CryptoPP::AdditiveCipherTemplate<CryptoPP::AbstractPolicyHolder<CryptoPP::AdditiveCipherAbstractPolicy, CryptoPP::CTR_ModePolicy> >, CryptoPP::AdditiveCipherAbstractPolicy>, CryptoPP::CipherModeFinalTemplate_CipherHolder<CryptoPP::BlockCipherFinal<(CryptoPP::CipherDir)0, CryptoPP::SHACAL2::Enc>, CryptoPP::ConcretePolicyHolder<CryptoPP::Empty, CryptoPP::AdditiveCipherTemplate<CryptoPP::AbstractPolicyHolder<CryptoPP::AdditiveCipherAbstractPolicy, CryptoPP::CTR_ModePolicy> >, CryptoPP::AdditiveCipherAbstractPolicy> > >::~AlgorithmImpl() [clone .lto_priv.1464]':
    <artificial>:(.text+0xa71): undefined reference to `CryptoPP::AlignedDeallocate(void*)'
    <artificial>:(.text+0xa81): undefined reference to `CryptoPP::AlignedDeallocate(void*)'
    /tmp//ccvLWVvh.ltrans21.ltrans.o: In function `CryptoPP::AlgorithmImpl<CryptoPP::ConcretePolicyHolder<CryptoPP::Empty, CryptoPP::AdditiveCipherTemplate<CryptoPP::AbstractPolicyHolder<CryptoPP::AdditiveCipherAbstractPolicy, CryptoPP::CTR_ModePolicy> >, CryptoPP::AdditiveCipherAbstractPolicy>, CryptoPP::CipherModeFinalTemplate_CipherHolder<CryptoPP::BlockCipherFinal<(CryptoPP::CipherDir)0, CryptoPP::TEA::Enc>, CryptoPP::ConcretePolicyHolder<CryptoPP::Empty, CryptoPP::AdditiveCipherTemplate<CryptoPP::AbstractPolicyHolder<CryptoPP::AdditiveCipherAbstractPolicy, CryptoPP::CTR_ModePolicy> >, CryptoPP::AdditiveCipherAbstractPolicy> > >::~AlgorithmImpl() [clone .lto_priv.1471]':
    <artificial>:(.text+0xb81): undefined reference to `CryptoPP::AlignedDeallocate(void*)'
    /tmp//ccvLWVvh.ltrans21.ltrans.o:<artificial>:(.text+0xb91): more undefined references to `CryptoPP::AlignedDeallocate(void*)' follow
    /tmp//ccvLWVvh.ltrans26.ltrans.o: In function `CryptoPP::MontgomeryRepresentation::MontgomeryRepresentation(CryptoPP::MontgomeryRepresentation const&)':
    <artificial>:(.text+0x20c5): undefined reference to `CryptoPP::AlignedAllocate(unsigned int)'
    /tmp//ccvLWVvh.ltrans26.ltrans.o: In function `DH2KeyAgreement::Prepare(void*, unsigned int*)':
    <artificial>:(.text+0x44b1): undefined reference to `CryptoPP::AlignedDeallocate(void*)'
    <artificial>:(.text+0x44c1): undefined reference to `CryptoPP::AlignedDeallocate(void*)'
    <artificial>:(.text+0x44d1): undefined reference to `CryptoPP::AlignedDeallocate(void*)'
    <artificial>:(.text+0x4521): undefined reference to `CryptoPP::AlignedDeallocate(void*)'
    /tmp//ccvLWVvh.ltrans26.ltrans.o: In function `CryptoPP::DH_Domain<CryptoPP::DL_GroupParameters_GFP_DefaultSafePrime, CryptoPP::EnumToType<CryptoPP::CofactorMultiplicationOption, 0> >::~DH_Domain()':
    <artificial>:(.text+0x777): undefined reference to `CryptoPP::AlignedDeallocate(void*)'
    /tmp//ccvLWVvh.ltrans26.ltrans.o:<artificial>:(.text+0x1807): more undefined references to `CryptoPP::AlignedDeallocate(void*)' follow
    /tmp//ccvLWVvh.ltrans26.ltrans.o: In function `CryptoPP::CipherModeBase::ResizeBuffers()':
    <artificial>:(.text._ZN8CryptoPP14CipherModeBase13ResizeBuffersEv[_ZN8CryptoPP14CipherModeBase13ResizeBuffersEv]+0x81): undefined reference to `CryptoPP::AlignedAllocate(unsigned int)'
    /tmp//ccvLWVvh.ltrans26.ltrans.o: In function `CryptoPP::ModularArithmetic::~ModularArithmetic()':
    <artificial>:(.text._ZN8CryptoPP17ModularArithmeticD0Ev[_ZN8CryptoPP17ModularArithmeticD5Ev]+0x91): undefined reference to `CryptoPP::AlignedDeallocate(void*)'
    <artificial>:(.text._ZN8CryptoPP17ModularArithmeticD0Ev[_ZN8CryptoPP17ModularArithmeticD5Ev]+0xa1): undefined reference to `CryptoPP::AlignedDeallocate(void*)'
    <artificial>:(.text._ZN8CryptoPP17ModularArithmeticD0Ev[_ZN8CryptoPP17ModularArithmeticD5Ev]+0xb5): undefined reference to `CryptoPP::AlignedDeallocate(void*)'
    /tmp//ccvLWVvh.ltrans26.ltrans.o: In function `CryptoPP::DL_GroupParameters_GFP_DefaultSafePrime::~DL_GroupParameters_GFP_DefaultSafePrime()':
    <artificial>:(.text._ZN8CryptoPP39DL_GroupParameters_GFP_DefaultSafePrimeD1Ev[_ZN8CryptoPP39DL_GroupParameters_GFP_DefaultSafePrimeD1Ev]+0xf1): undefined reference to `CryptoPP::AlignedDeallocate(void*)'
    <artificial>:(.text._ZN8CryptoPP39DL_GroupParameters_GFP_DefaultSafePrimeD1Ev[_ZN8CryptoPP39DL_GroupParameters_GFP_DefaultSafePrimeD1Ev]+0x111): undefined reference to `CryptoPP::AlignedDeallocate(void*)'
    /tmp//ccvLWVvh.ltrans26.ltrans.o:<artificial>:(.text._ZN8CryptoPP39DL_GroupParameters_GFP_DefaultSafePrimeD1Ev[_ZN8CryptoPP39DL_GroupParameters_GFP_DefaultSafePrimeD1Ev]+0x107): more undefined references to `CryptoPP::AlignedDeallocate(void*)' follow
    /tmp//ccvLWVvh.ltrans26.ltrans.o: In function `CryptoPP::value_ptr<CryptoPP::MontgomeryRepresentation>::operator=(CryptoPP::value_ptr<CryptoPP::MontgomeryRepresentation> const&)':
    <artificial>:(.text._ZN8CryptoPP9value_ptrINS_24MontgomeryRepresentationEEaSERKS2_[_ZN8CryptoPP9value_ptrINS_24MontgomeryRepresentationEEaSERKS2_]+0x101): undefined reference to `CryptoPP::AlignedAllocate(unsigned int)'
    /tmp//ccvLWVvh.ltrans26.ltrans.o: In function `CryptoPP::AllocatorWithCleanup<unsigned char, true>::pointer CryptoPP::StandardReallocate<unsigned char, CryptoPP::AllocatorWithCleanup<unsigned char, true> >(CryptoPP::AllocatorWithCleanup<unsigned char, true>&, unsigned char*, CryptoPP::AllocatorWithCleanup<unsigned char, true>::size_type, CryptoPP::AllocatorWithCleanup<unsigned char, true>::size_type, bool)':
    <artificial>:(.text._ZN8CryptoPP18StandardReallocateIhNS_20AllocatorWithCleanupIhLb1EEEEENT0_7pointerERS3_PT_NS3_9size_typeES8_b[_ZN8CryptoPP18StandardReallocateIhNS_20AllocatorWithCleanupIhLb1EEEEENT0_7pointerERS3_PT_NS3_9size_typeES8_b]+0x161): undefined reference to `CryptoPP::AlignedDeallocate(void*)'
    <artificial>:(.text._ZN8CryptoPP18StandardReallocateIhNS_20AllocatorWithCleanupIhLb1EEEEENT0_7pointerERS3_PT_NS3_9size_typeES8_b[_ZN8CryptoPP18StandardReallocateIhNS_20AllocatorWithCleanupIhLb1EEEEENT0_7pointerERS3_PT_NS3_9size_typeES8_b]+0x171): undefined reference to `CryptoPP::AlignedDeallocate(void*)'
    <artificial>:(.text._ZN8CryptoPP18StandardReallocateIhNS_20AllocatorWithCleanupIhLb1EEEEENT0_7pointerERS3_PT_NS3_9size_typeES8_b[_ZN8CryptoPP18StandardReallocateIhNS_20AllocatorWithCleanupIhLb1EEEEENT0_7pointerERS3_PT_NS3_9size_typeES8_b]+0x181): undefined reference to `CryptoPP::AlignedAllocate(unsigned int)'
    <artificial>:(.text._ZN8CryptoPP18StandardReallocateIhNS_20AllocatorWithCleanupIhLb1EEEEENT0_7pointerERS3_PT_NS3_9size_typeES8_b[_ZN8CryptoPP18StandardReallocateIhNS_20AllocatorWithCleanupIhLb1EEEEENT0_7pointerERS3_PT_NS3_9size_typeES8_b]+0x1a6): undefined reference to `CryptoPP::AlignedAllocate(unsigned int)'
    /tmp//ccvLWVvh.ltrans29.ltrans.o: In function `CryptoPP::CipherModeFinalTemplate_CipherHolder<CryptoPP::BlockCipherFinal<(CryptoPP::CipherDir)0, CryptoPP::Camellia::Base>, CryptoPP::ConcretePolicyHolder<CryptoPP::Empty, CryptoPP::AdditiveCipherTemplate<CryptoPP::AbstractPolicyHolder<CryptoPP::AdditiveCipherAbstractPolicy, CryptoPP::CTR_ModePolicy> >, CryptoPP::AdditiveCipherAbstractPolicy> >::~CipherModeFinalTemplate_CipherHolder()':
    <artificial>:(.text+0x2c6): undefined reference to `CryptoPP::AlignedDeallocate(void*)'
    <artificial>:(.text+0x2d1): undefined reference to `CryptoPP::AlignedDeallocate(void*)'
    /tmp//ccvLWVvh.ltrans29.ltrans.o: In function `CryptoPP::CipherModeFinalTemplate_CipherHolder<CryptoPP::BlockCipherFinal<(CryptoPP::CipherDir)0, CryptoPP::Camellia::Base>, CryptoPP::ConcretePolicyHolder<CryptoPP::Empty, CryptoPP::AdditiveCipherTemplate<CryptoPP::AbstractPolicyHolder<CryptoPP::AdditiveCipherAbstractPolicy, CryptoPP::CTR_ModePolicy> >, CryptoPP::AdditiveCipherAbstractPolicy> >::~CipherModeFinalTemplate_CipherHolder() [clone .lto_priv.1562]':
    <artificial>:(.text+0x3f1): undefined reference to `CryptoPP::AlignedDeallocate(void*)'
    <artificial>:(.text+0x401): undefined reference to `CryptoPP::AlignedDeallocate(void*)'
    /tmp//ccvLWVvh.ltrans29.ltrans.o: In function `CryptoPP::CipherModeFinalTemplate_CipherHolder<CryptoPP::BlockCipherFinal<(CryptoPP::CipherDir)0, CryptoPP::SEED::Base>, CryptoPP::ConcretePolicyHolder<CryptoPP::Empty, CryptoPP::AdditiveCipherTemplate<CryptoPP::AbstractPolicyHolder<CryptoPP::AdditiveCipherAbstractPolicy, CryptoPP::CTR_ModePolicy> >, CryptoPP::AdditiveCipherAbstractPolicy> >::~CipherModeFinalTemplate_CipherHolder()':
    <artificial>:(.text+0x515): undefined reference to `CryptoPP::AlignedDeallocate(void*)'
    /tmp//ccvLWVvh.ltrans29.ltrans.o:<artificial>:(.text+0x521): more undefined references to `CryptoPP::AlignedDeallocate(void*)' follow
    /tmp//ccvLWVvh.ltrans29.ltrans.o: In function `CryptoPP::ModePolicyCommonTemplate<CryptoPP::AdditiveCipherAbstractPolicy>::CipherSetKey(CryptoPP::NameValuePairs const&, unsigned char const*, unsigned int)':
    <artificial>:(.text._ZN8CryptoPP24ModePolicyCommonTemplateINS_28AdditiveCipherAbstractPolicyEE12CipherSetKeyERKNS_14NameValuePairsEPKhj[_ZN8CryptoPP24ModePolicyCommonTemplateINS_28AdditiveCipherAbstractPolicyEE12CipherSetKeyERKNS_14NameValuePairsEPKhj]+0x181): undefined reference to `CryptoPP::AlignedAllocate(unsigned int)'
    collect2: error: ld returned 1 exit status
    Makefile:138: recipe for target '../game_r54250_32' failed
    
     
  3.  

    change it for this :)

    	// START_OF_Player_EXP_TABLE_LOADING
    	string temp_exp_line;
    	char szExpTable[256];
    	snprintf(szExpTable, sizeof(szExpTable), "%s/Player_Exptable.txt", LocaleService_GetBasePath().c_str());
    	ifstream exp_table_open(szExpTable);
    	if (!exp_table_open.is_open()) {
    		sys_err("Failed to Load ExpTable from %s/Player_Exptable.txt", LocaleService_GetBasePath().c_str());
    		return 0;
    	}
    	int exp_table_counter = 0;
    	while (!exp_table_open.eof())
    	{
    		exp_table_open >> temp_exp_line;
    		str_to_number(exp_table_common[exp_table_counter], temp_exp_line.c_str());
    		exp_table_counter++;
    	}
    	sys_log(0, "EXP Table Loaded succsefully from %s", LocaleService_GetBasePath().c_str());
    	// END_OF_Player_EXP_TABLE_LOADING
    

     

     

    Put #include "fstream" at the top.

    After include stdafx.h

    #done but

     

     
    compile main.cpp
    In file included from main.cpp:64:
    SpeedServer.h: In member function 'bool HME::operator<(const HME&) const':
    SpeedServer.h:43: warning: suggest parentheses around && within ||
    SpeedServer.h: In member function 'bool Date::operator<(const Date&) const':
    SpeedServer.h:68: warning: suggest parentheses around && within ||
    SpeedServer.h:69: warning: suggest parentheses around && within ||
    In file included from main.cpp:95:
    check_server.h: In static member function 'static bool CheckServer::CheckIp(const char*)':
    check_server.h:24: warning: comparison between signed and unsigned integer expressions
    main.cpp: In function 'int main(int, char**)':
    main.cpp:577: error: 'string' was not declared in this scope
    main.cpp:577: error: expected `;' before 'temp_exp_line'
    main.cpp:580: error: 'ifstream' was not declared in this scope
    main.cpp:580: error: expected `;' before 'exp_table_open'
    main.cpp:581: error: 'exp_table_open' was not declared in this scope
    main.cpp:586: error: 'exp_table_open' was not declared in this scope
    main.cpp:588: error: 'temp_exp_line' was not declared in this scope
    ../../../Extern/include/cryptopp/cryptlib.h: In member function 'bool CryptoPP::NameValuePairs::GetValue(const char*, T&) const [with T = std::string]':
    ../../../Extern/include/cryptopp/cryptlib.h:277:   instantiated from here
    ../../../Extern/include/cryptopp/cryptlib.h:264: warning: dereferencing type-punned pointer will break strict-aliasing rules
    ../../../Extern/include/cryptopp/cryptlib.h: In member function 'bool CryptoPP::NameValuePairs::GetValue(const char*, T&) const [with T = int]':
    ../../../Extern/include/cryptopp/cryptlib.h:283:   instantiated from here
    ../../../Extern/include/cryptopp/cryptlib.h:264: warning: dereferencing type-punned pointer will break strict-aliasing rules
    ../../../Extern/include/gtest/internal/gtest-port.h: In function 'Derived* testing::internal::CheckedDowncastToActualType(Base*) [with Derived = const testing::internal::ValuesInIteratorRangeGenerator<bool>::Iterator, Base = const testing::internal::ParamIteratorInterface<bool>]':
    ../../../Extern/include/gtest/internal/gtest-param-util.h:321:   instantiated from 'bool testing::internal::ValuesInIteratorRangeGenerator<T>::Iterator::Equals(const testing::internal::ParamIteratorInterface<T>&) const [with T = bool]'
    main.cpp:1177:   instantiated from here
    ../../../Extern/include/gtest/internal/gtest-port.h:1031: warning: dereferencing type-punned pointer will break strict-aliasing rules
    Makefile:130: recipe for target 'OBJDIR/main.o' failed
    gmake: *** [OBJDIR/main.o] Error 1
    
  4. New error :

     

    compile main.cpp
    In file included from main.cpp:64:
    SpeedServer.h: In member function 'bool HME::operator<(const HME&) const':
    SpeedServer.h:43: warning: suggest parentheses around && within ||
    SpeedServer.h: In member function 'bool Date::operator<(const Date&) const':
    SpeedServer.h:68: warning: suggest parentheses around && within ||
    SpeedServer.h:69: warning: suggest parentheses around && within ||
    In file included from main.cpp:95:
    check_server.h: In static member function 'static bool CheckServer::CheckIp(const char*)':
    check_server.h:24: warning: comparison between signed and unsigned integer expressions
    main.cpp: In function 'int main(int, char**)':
    main.cpp:554: error: no matching function for call to 'std::basic_ifstream<char, std::char_traits<char> >::basic_ifstream(const char [16], const char*)'
    /usr/include/c++/4.2/fstream:464: note: candidates are: std::basic_ifstream<_CharT, _Traits>::basic_ifstream(const char*, std::_Ios_Openmode) [with _CharT = char, _Traits = std::char_traits<char>]
    /usr/include/c++/4.2/fstream:450: note:                 std::basic_ifstream<_CharT, _Traits>::basic_ifstream() [with _CharT = char, _Traits = std::char_traits<char>]
    /usr/include/c++/4.2/iosfwd:89: note:                 std::basic_ifstream<char, std::char_traits<char> >::basic_ifstream(const std::basic_ifstream<char, std::char_traits<char> >&)
    ../../../Extern/include/cryptopp/cryptlib.h: In member function 'bool CryptoPP::NameValuePairs::GetValue(const char*, T&) const [with T = std::string]':
    ../../../Extern/include/cryptopp/cryptlib.h:277:   instantiated from here
    ../../../Extern/include/cryptopp/cryptlib.h:264: warning: dereferencing type-punned pointer will break strict-aliasing rules
    ../../../Extern/include/cryptopp/cryptlib.h: In member function 'bool CryptoPP::NameValuePairs::GetValue(const char*, T&) const [with T = int]':
    ../../../Extern/include/cryptopp/cryptlib.h:283:   instantiated from here
    ../../../Extern/include/cryptopp/cryptlib.h:264: warning: dereferencing type-punned pointer will break strict-aliasing rules
    ../../../Extern/include/gtest/internal/gtest-port.h: In function 'Derived* testing::internal::CheckedDowncastToActualType(Base*) [with Derived = const testing::internal::ValuesInIteratorRangeGenerator<bool>::Iterator, Base = const testing::internal::ParamIteratorInterface<bool>]':
    ../../../Extern/include/gtest/internal/gtest-param-util.h:321:   instantiated from 'bool testing::internal::ValuesInIteratorRangeGenerator<T>::Iterator::Equals(const testing::internal::ParamIteratorInterface<T>&) const [with T = bool]'
    main.cpp:1155:   instantiated from here
    ../../../Extern/include/gtest/internal/gtest-port.h:1031: warning: dereferencing type-punned pointer will break strict-aliasing rules
    Makefile:130: recipe for target 'OBJDIR/main.o' failed
    gmake: *** [OBJDIR/main.o] Error 1
     
    
  5.  

    g_stServiceName isn't declared.

     

    Do this:

    std::ifstream exp_table_open("%s/exptable.txt",LocaleService_GetBasePath().c_str());

    I have replace it with  std::ifstream exp_table_open("locale/%s/exptable.txt",g_stServiceName); but it come this :

     

     

     
     
    compile main.cpp
    In file included from main.cpp:64:
    SpeedServer.h: In member function 'bool HME::operator<(const HME&) const':
    SpeedServer.h:43: warning: suggest parentheses around && within ||
    SpeedServer.h: In member function 'bool Date::operator<(const Date&) const':
    SpeedServer.h:68: warning: suggest parentheses around && within ||
    SpeedServer.h:69: warning: suggest parentheses around && within ||
    In file included from main.cpp:95:
    check_server.h: In static member function 'static bool CheckServer::CheckIp(const char*)':
    check_server.h:24: warning: comparison between signed and unsigned integer expressions
    main.cpp: In function 'int main(int, char**)':
    main.cpp:554: error: no matching function for call to 'std::basic_ifstream<char, std::char_traits<char> >::basic_ifstream(const char [16], const char*)'
    /usr/include/c++/4.2/fstream:464: note: candidates are: std::basic_ifstream<_CharT, _Traits>::basic_ifstream(const char*, std::_Ios_Openmode) [with _CharT = char, _Traits = std::char_traits<char>]
    /usr/include/c++/4.2/fstream:450: note:                 std::basic_ifstream<_CharT, _Traits>::basic_ifstream() [with _CharT = char, _Traits = std::char_traits<char>]
    /usr/include/c++/4.2/iosfwd:89: note:                 std::basic_ifstream<char, std::char_traits<char> >::basic_ifstream(const std::basic_ifstream<char, std::char_traits<char> >&)
    main.cpp:558: error: expected `;' before 'return'
    ../../../Extern/include/cryptopp/cryptlib.h: In member function 'bool CryptoPP::NameValuePairs::GetValue(const char*, T&) const [with T = std::string]':
    ../../../Extern/include/cryptopp/cryptlib.h:277:   instantiated from here
    ../../../Extern/include/cryptopp/cryptlib.h:264: warning: dereferencing type-punned pointer will break strict-aliasing rules
    ../../../Extern/include/cryptopp/cryptlib.h: In member function 'bool CryptoPP::NameValuePairs::GetValue(const char*, T&) const [with T = int]':
    ../../../Extern/include/cryptopp/cryptlib.h:283:   instantiated from here
    ../../../Extern/include/cryptopp/cryptlib.h:264: warning: dereferencing type-punned pointer will break strict-aliasing rules
    ../../../Extern/include/gtest/internal/gtest-port.h: In function 'Derived* testing::internal::CheckedDowncastToActualType(Base*) [with Derived = const testing::internal::ValuesInIteratorRangeGenerator<bool>::Iterator, Base = const testing::internal::ParamIteratorInterface<bool>]':
    ../../../Extern/include/gtest/internal/gtest-param-util.h:321:   instantiated from 'bool testing::internal::ValuesInIteratorRangeGenerator<T>::Iterator::Equals(const testing::internal::ParamIteratorInterface<T>&) const [with T = bool]'
    main.cpp:1151:   instantiated from here
    ../../../Extern/include/gtest/internal/gtest-port.h:1031: warning: dereferencing type-punned pointer will break strict-aliasing rules
    Makefile:130: recipe for target 'OBJDIR/main.o' failed
    gmake: *** [OBJDIR/main.o] Error 1
    
  6.  
    compile main.cpp
    In file included from main.cpp:63:
    SpeedServer.h: In member function 'bool HME::operator<(const HME&) const':
    SpeedServer.h:43: warning: suggest parentheses around && within ||
    SpeedServer.h: In member function 'bool Date::operator<(const Date&) const':
    SpeedServer.h:68: warning: suggest parentheses around && within ||
    SpeedServer.h:69: warning: suggest parentheses around && within ||
    main.cpp: In function 'int main(int, char**)':
    main.cpp:459: error: 'g_stServiceName' was not declared in this scope
    main.cpp:463: error: expected `;' before 'return'
    ../../../Extern/include/cryptopp/cryptlib.h: In member function 'bool CryptoPP::NameValuePairs::GetValue(const char*, T&) const [with T = std::string]':
    ../../../Extern/include/cryptopp/cryptlib.h:277:   instantiated from here
    ../../../Extern/include/cryptopp/cryptlib.h:264: warning: dereferencing type-punned pointer will break strict-aliasing rules
    ../../../Extern/include/cryptopp/cryptlib.h: In member function 'bool CryptoPP::NameValuePairs::GetValue(const char*, T&) const [with T = int]':
    ../../../Extern/include/cryptopp/cryptlib.h:283:   instantiated from here
    ../../../Extern/include/cryptopp/cryptlib.h:264: warning: dereferencing type-punned pointer will break strict-aliasing rules
    ../../../Extern/include/gtest/internal/gtest-port.h: In function 'Derived* testing::internal::CheckedDowncastToActualType(Base*) [with Derived = const testing::internal::ValuesInIteratorRangeGenerator<bool>::Iterator, Base = const testing::internal::ParamIteratorInterface<bool>]':
    ../../../Extern/include/gtest/internal/gtest-param-util.h:321:   instantiated from 'bool testing::internal::ValuesInIteratorRangeGenerator<T>::Iterator::Equals(const testing::internal::ParamIteratorInterface<T>&) const [with T = bool]'
    main.cpp:1035:   instantiated from here
    ../../../Extern/include/gtest/internal/gtest-port.h:1031: warning: dereferencing type-punned pointer will break strict-aliasing rules
    Makefile:130: recipe for target 'OBJDIR/main.o' failed
    gmake: *** [OBJDIR/main.o] Error 1
    
×
×
  • 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.