Problema compilare

Înainte de a posta o problemă, caută în acest forum și poate găsești rezolvare.
Închis
Avatar utilizator
LoZzO
Nivel 2

Nivel 2
Mesaje: 169
Membru din: 20 Aug 2014, 14:00
Server: Oficial
Regat: Jinno
Aprecieri: 53  
Mulţumiri: 20  
Discord: Copiază ID
 Contact:
Medalii

*Problemă/Întrebare: Care ar putea fi problema?
Tipologie server(PvM / PvP): pvm
*Resursă folosită: *Link exclusiv J4M*
*ServerFiles utilizat: sky
*Syserr:
Poză:
*Detalii suplimentare:
root@localhost:/usr/src/Sky-Src/Server/game/src # gmake
compile BattleArena.cpp
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile FSM.cpp
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile MarkConvert.cpp
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile MarkImage.cpp
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile MarkManager.cpp
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile OXEvent.cpp
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
In file included from /usr/local/include/boost/predef/os/bsd/free.h:37,
from /usr/local/include/boost/predef/os/bsd.h:96,
from /usr/local/include/boost/predef/os/bsd/dragonfly.h:11,
from /usr/local/include/boost/predef/os/bsd.h:95,
from /usr/local/include/boost/predef/os/bsd/bsdi.h:11,
from /usr/local/include/boost/predef/os/bsd.h:52,
from /usr/local/include/boost/predef/os.h:17,
from /usr/local/include/boost/predef.h:17,
from /usr/local/include/boost/unordered/detail/fwd.hpp:14,
from /usr/local/include/boost/unordered/detail/implementation.hpp:44,
from /usr/local/include/boost/unordered/detail/map.hpp:6,
from /usr/local/include/boost/unordered/unordered_map.hpp:21,
from /usr/local/include/boost/unordered_map.hpp:17,
from questmanager.h:4,
from OXEvent.cpp:4:
../../common/stl.h:99:32: error: expected ')' before 'a'
99 | template <typename T> T MIN(T a, T b)
| ^
../../common/stl.h:99:26: note: to match this '('
99 | template <typename T> T MIN(T a, T b)
| ^~~
../../common/stl.h:99:32: error: expected ')' before 'a'
99 | template <typename T> T MIN(T a, T b)
| ^
../../common/stl.h:99:26: note: to match this '('
99 | template <typename T> T MIN(T a, T b)
| ^~~
../../common/stl.h:99:32: error: expected ')' before 'a'
99 | template <typename T> T MIN(T a, T b)
| ^
../../common/stl.h:99:26: note: to match this '('
99 | template <typename T> T MIN(T a, T b)
| ^~~
../../common/stl.h:104:32: error: expected ')' before 'a'
104 | template <typename T> T MAX(T a, T b)
| ^
../../common/stl.h:104:26: note: to match this '('
104 | template <typename T> T MAX(T a, T b)
| ^~~
../../common/stl.h:104:32: error: expected ')' before 'a'
104 | template <typename T> T MAX(T a, T b)
| ^
../../common/stl.h:104:26: note: to match this '('
104 | template <typename T> T MAX(T a, T b)
| ^~~
../../common/stl.h:104:32: error: expected ')' before 'a'
104 | template <typename T> T MAX(T a, T b)
| ^
../../common/stl.h:104:26: note: to match this '('
104 | template <typename T> T MAX(T a, T b)
| ^~~
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:28: error: 'byte' was not declared in this scope; did you mean 'CryptoPP::byte'?
31 | encoder_->ProcessData((byte*)buffer, (const byte*)buffer, length);
| ^~~~
| CryptoPP::byte
In file included from /usr/local/include/cryptopp/cryptlib.h:105,
from cipher.h:6,
from desc.h:7,
from OXEvent.cpp:12:
/usr/local/include/cryptopp/config.h:240:23: note: 'CryptoPP::byte' declared here
240 | typedef unsigned char byte;
| ^~~~
In file included from desc.h:7,
from OXEvent.cpp:12:
cipher.h:31:33: error: expected primary-expression before ')' token
31 | encoder_->ProcessData((byte*)buffer, (const byte*)buffer, length);
| ^
cipher.h:31:49: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
31 | encoder_->ProcessData((byte*)buffer, (const byte*)buffer, length);
| ^~~~
cipher.h:31:43: error: expected primary-expression before 'const'
31 | encoder_->ProcessData((byte*)buffer, (const byte*)buffer, length);
| ^~~~~
cipher.h:31:43: error: expected ')' before 'const'
31 | encoder_->ProcessData((byte*)buffer, (const byte*)buffer, length);
| ~^~~~~
| )
cipher.h: In member function 'void Cipher::Decrypt(void*, size_t)':
cipher.h:39:28: error: 'byte' was not declared in this scope; did you mean 'CryptoPP::byte'?
39 | decoder_->ProcessData((byte*)buffer, (const byte*)buffer, length);
| ^~~~
| CryptoPP::byte
In file included from /usr/local/include/cryptopp/cryptlib.h:105,
from cipher.h:6,
from desc.h:7,
from OXEvent.cpp:12:
/usr/local/include/cryptopp/config.h:240:23: note: 'CryptoPP::byte' declared here
240 | typedef unsigned char byte;
| ^~~~
In file included from desc.h:7,
from OXEvent.cpp:12:
cipher.h:39:33: error: expected primary-expression before ')' token
39 | decoder_->ProcessData((byte*)buffer, (const byte*)buffer, length);
| ^
cipher.h:39:49: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
39 | decoder_->ProcessData((byte*)buffer, (const byte*)buffer, length);
| ^~~~
cipher.h:39:43: error: expected primary-expression before 'const'
39 | decoder_->ProcessData((byte*)buffer, (const byte*)buffer, length);
| ^~~~~
cipher.h:39:43: error: expected ')' before 'const'
39 | decoder_->ProcessData((byte*)buffer, (const byte*)buffer, length);
| ~^~~~~
| )
gmake: *** [Makefile:131: OBJDIR/OXEvent.o] Error 1
Avatar utilizator
amvenitsavadcv
Nivel 3

Nivel 3
Mesaje: 413
Membru din: 28 Iul 2018, 11:25
Server: da
Aprecieri: 44  
Mulţumiri: 156  
Medalii

Încerci să compilezi cu o versiune de C++ mai noua și de asta primești erorile alea.
Avatar utilizator
LoZzO
Nivel 2

Nivel 2
Mesaje: 169
Membru din: 20 Aug 2014, 14:00
Server: Oficial
Regat: Jinno
Aprecieri: 53  
Mulţumiri: 20  
Discord: Copiază ID
 Contact:
Medalii

Am observat. vreo idee sa instalez fisierele pe freebsd 11.4 sa pot compila sursa?
Avatar utilizator
amvenitsavadcv
Nivel 3

Nivel 3
Mesaje: 413
Membru din: 28 Iul 2018, 11:25
Server: da
Aprecieri: 44  
Mulţumiri: 156  
Medalii

LoZzO scrie: ↑19 Dec 2020, 23:29 Am observat. vreo idee sa instalez fisierele pe freebsd 11.4 sa pot compila sursa?
https://github.com/blackdragonx61/Metin ... e-C-Status

Ai aici tutorial de upgrade la sursa.
Pentru acest mesaj, amvenitsavadcv for the post:
LoZzO
Avatar utilizator
LoZzO
Nivel 2

Nivel 2
Mesaje: 169
Membru din: 20 Aug 2014, 14:00
Server: Oficial
Regat: Jinno
Aprecieri: 53  
Mulţumiri: 20  
Discord: Copiază ID
 Contact:
Medalii

mersi, cer tc
Avatar utilizator
Alcinous
Untrusted User

Untrusted User
Mesaje: 670
Membru din: 13 Noi 2020, 23:46
Server: None
Regat: Jinno
Aprecieri: 322  
Mulţumiri: 487  
Discord: Copiază ID

Subiect marcat ca fiind rezolvat.

[ Postat de pe iPhone ] Imagine
Închis

Înapoi la “Probleme rezolvate”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 10 vizitatori