Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Błędy kompilacji


Rekomendowane odpowiedzi

Opublikowano

Witam, przy kompilacji source wyskakują mi takie o to błędy:

- DB:

In file included from GuildManager.cpp:2:
GuildManager.h: In member function 'bool TGuildDeclareInfo::operator<(const TGuildDeclareInfo&) const':
GuildManager.h:32: warning: suggest parentheses around && within ||
GuildManager.h: In member function 'bool TGuildWaitStartInfo::operator<(const TGuildWaitStartInfo&) const':
GuildManager.h:66: warning: suggest parentheses around && within ||
GuildManager.h: In function 'bool operator<(const TGuildSkillUsed&, const TGuildSkillUsed&)':
GuildManager.h:102: warning: suggest parentheses around && within ||
In file included from ClientManagerGuild.cpp:8:
GuildManager.h: In member function 'bool TGuildDeclareInfo::operator<(const TGuildDeclareInfo&) const':
GuildManager.h:32: warning: suggest parentheses around && within ||
GuildManager.h: In member function 'bool TGuildWaitStartInfo::operator<(const TGuildWaitStartInfo&) const':
GuildManager.h:66: warning: suggest parentheses around && within ||
GuildManager.h: In function 'bool operator<(const TGuildSkillUsed&, const TGuildSkillUsed&)':
GuildManager.h:102: warning: suggest parentheses around && within ||
Monarch.cpp: In member function 'bool CMonarch::AddMoney(int, int64_t)':
Monarch.cpp:132: warning: format '%lld' expects type 'long long int', but argument 4 has type 'int64_t'
Monarch.cpp:132: warning: format '%lld' expects type 'long long int', but argument 4 has type 'int64_t'
Monarch.cpp: In member function 'bool CMonarch::DecMoney(int, int64_t)':
Monarch.cpp:148: warning: format '%lld' expects type 'long long int', but argument 4 has type 'int64_t'
Monarch.cpp:148: warning: format '%lld' expects type 'long long int', but argument 4 has type 'int64_t'
Monarch.cpp: In member function 'bool CMonarch::TakeMoney(int, DWORD, int64_t)':
Monarch.cpp:166: warning: format '%lld' expects type 'long long int', but argument 4 has type 'int64_t'
Monarch.cpp:166: warning: format '%lld' expects type 'long long int', but argument 4 has type 'int64_t'
Monarch.cpp: In member function 'bool CMonarch::SetMonarch(const char*)':
Monarch.cpp:240: warning: format '%lld' expects type 'long long int', but argument 6 has type 'int64_t'
Monarch.cpp:240: warning: format '%lld' expects type 'long long int', but argument 6 has type 'int64_t'
g++: Internal error: Killed: 9 (program cc1plus)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
gmake: *** [.obj/ClientManagerGuild.o] Error 1
gmake: *** Waiting for unfinished jobs....
{standard input}: Assembler messages:
{standard input}:6496: Warning: end of file not at end of a line; newline inserted
{standard input}: Assembler messages:
{standard input}:6265: Warning: end of file not at end of a line; newline inserted
g++: Internal error: Killed: 9 (program cc1plus)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
gmake: *** [.obj/DBManager.o] Error 1
g++: Internal error: Killed: 9 (program cc1plus)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
gmake: *** [.obj/ItemAwardManager.o] Error 1
In file included from Main.cpp:6:
GuildManager.h: In member function 'bool TGuildDeclareInfo::operator<(const TGuildDeclareInfo&) const':
GuildManager.h:32: warning: suggest parentheses around && within ||
GuildManager.h: In member function 'bool TGuildWaitStartInfo::operator<(const TGuildWaitStartInfo&) const':
GuildManager.h:66: warning: suggest parentheses around && within ||
GuildManager.h: In function 'bool operator<(const TGuildSkillUsed&, const TGuildSkillUsed&)':
GuildManager.h:102: warning: suggest parentheses around && within ||
g++: Internal error: Killed: 9 (program cc1plus)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
gmake: *** [.obj/ClientManagerLogin.o] Error 1
ClientManagerBoot.cpp: In member function 'bool CClientManager::InitializeMobTable()':
ClientManagerBoot.cpp:402: warning: statement has no effect
g++: Internal error: Killed: 9 (program cc1plus)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
gmake: *** [.obj/ClientManagerBoot.o] Error 1
In file included from ClientManager.cpp:15:
GuildManager.h: In member function 'bool TGuildDeclareInfo::operator<(const TGuildDeclareInfo&) const':
GuildManager.h:32: warning: suggest parentheses around && within ||
GuildManager.h: In member function 'bool TGuildWaitStartInfo::operator<(const TGuildWaitStartInfo&) const':
GuildManager.h:66: warning: suggest parentheses around && within ||
GuildManager.h: In function 'bool operator<(const TGuildSkillUsed&, const TGuildSkillUsed&)':
GuildManager.h:102: warning: suggest parentheses around && within ||
ClientManager.cpp: In member function 'void CClientManager::RESULT_SAFEBOX_CHANGE_PASSWORD(CPeer*, SQLMsg*)':
ClientManager.cpp:876: warning: suggest parentheses around && within ||
ClientManagerPlayer.cpp: In member function 'char* CClientManager::GetCommand(char*)':
ClientManagerPlayer.cpp:433: warning: address of local variable 'command' returned
ClientManagerPlayer.cpp: In member function 'void CClientManager::RESULT_HIGHSCORE_REGISTER(CPeer*, SQLMsg*)':
ClientManagerPlayer.cpp:1262: warning: suggest parentheses around && within ||

- GAME:

g++: Internal error: Killed: 9 (program cc1plus)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
gmake: *** [OBJDIR/char_battle.o] Error 1
gmake: *** Waiting for unfinished jobs....
char.cpp:7217: warning: this decimal constant is unsigned only in ISO C90
g++: Internal error: Killed: 9 (program cc1plus)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
gmake: *** [OBJDIR/char_change_empire.o] Error 1
g++: Internal error: Killed: 9 (program cc1plus)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
gmake: *** [OBJDIR/building.o] Error 1
g++: Internal error: Killed: 9 (program cc1plus)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
gmake: *** [OBJDIR/char.o] Error 1
../../../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/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/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/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

Proszę o szybką pomoc.

Dodam, że ten sam kod kompiluje się bez problemu na moim komputerze.

Te błędy wyskakują przy kompilacji na VPSie od BlazingF&&t.IO

 

Opublikowano

No skoro radzisz :)

Dzięki za pomoc.

Chociarz proszę obcykanych o pomoc w rozwiązaniu błędu.

Opublikowano

Zainstaluj makedepend, gmake, mysql-client, pobierz paczkę www.virtualmt2.pl/Extern.tgz skompiluj na początek crypto, później db i game.

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...