• 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!

Compiling Help Compiling Ubuntu 11.10

handert

New Member
Joined
Nov 14, 2010
Messages
4
Reaction score
0
Help Compiling server Ubuntu 11.10 Lts, tsf 0.4 (rev trunk.3777)

---- error ----
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:613:76: erro: array subscript is above array bounds [-Werror=array-bounds]
game.cpp: Na função membro 'void Game::prepareGlobalSave()':
game.cpp:6138:30: erro: array subscript is above array bounds [-Werror=array-bounds]
game.cpp:6140:22: erro: array subscript is above array bounds [-Werror=array-bounds]
cc1plus: todos os avisos devem ser tratados como erros

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 `/root/tfs/rev2'
make: ** [all] Erro 2

error tidy as follows, was in the "game.h" sought by the line "globalSaveMessage bool [2];" and changed the 2 by 3, thus;
globalSaveMessage bool [3];
Attention: At the rev trunk.3777 globalSaveMessage [2], is on the line 672 and rev 3884 he is on the line 686.

it appeared to me a new error, it would be this:
luascript.cpp: Na função membro 'bool LuaInterface::loadDirectory(const string&, Npc*)':
luascript.cpp:741:23: erro: 'class boost::filesystem3::directory_entry' has no member named 'leaf'
mv -f .deps/items.Tpo .deps/items.Po
g++ -DHAVE_CONFIG_H -I. -I/usr/include/libxml2 -I/usr/include/lua5.1 -O2 -fomit-frame-pointer -D__USE_MYSQL__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT mailbox.o -MD -MP -MF .deps/mailbox.Tpo -c -o mailbox.o mailbox.cpp
make[1]: ** [luascript.o] Erro 1
make[1]: ** Esperando que outros processos terminem.
mv -f .deps/mailbox.Tpo .deps/mailbox.Po
mv -f .deps/iomapserialize.Tpo .deps/iomapserialize.Po
mv -f .deps/item.Tpo .deps/item.Po
make[1]: Saindo do diretório `/root/ot'
make: ** [all] Erro 2
someone could help me?
 
Last edited:
Back
Top