• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Compiling Error compiling rev 3884

marcos16

Falkhonn
Joined
May 4, 2012
Messages
224
Reaction score
1
I am using rev 3884 on Linux Ubuntu 12.04 .. and I came across the following error while compiling

Code:
game.cpp: No construtor âGame::Game()â:
game.cpp:80:22: erro: array subscript is above array bounds [-Werror=array-bounds]
game.h: Na função membro âvoid Game::globalSave()â:
game.h:623:76: erro: array subscript is above array bounds [-Werror=array-bounds]
game.cpp: Na função membro âvoid Game::prepareGlobalSave()â:
game.cpp:6256:30: erro: array subscript is above array bounds [-Werror=array-bounds]
game.cpp:6258:22: erro: array subscript is above array bounds [-Werror=array-bounds]
cc1plus: all warnings being treated as errors
make[1]: ** [game.o] Erro 1
make[1]: ** Esperando que outros processos terminem.
mv -f .deps/group.Tpo .deps/group.Po
make[1]: Saindo do diretório `/otserv/distrao'
make: ** [all] Erro 2

Could someone tell me how to solve it? Thank you very much in advance
 
without the source code i couldnt tell much, but try to use default compiler constructor just dont forget to initialize it members.
 
Last edited:
Back
Top