I compile a TFS server on ubuntu, it complies correctly until it's about to link all the files and create the game-file.
but when it's on it's last .o file, it throw out an error and cancel..
I've tried various of ways to solving the problem but I end up with errors anyway I attempt.
I guess a little there's a lib missing, or some flag or something.. because what I see comparing other OTs I can't see any bigger difference.
The sources I'm trying to compile on ubuntu, have been successfully compiled on windows 7 several times.
Any help would be highly appreciated!
edit: that smile is supposed to be : (
I tried use code tags but that made the bar like 500 miles wide..... <.<
but when it's on it's last .o file, it throw out an error and cancel..
I've tried various of ways to solving the problem but I end up with errors anyway I attempt.
I guess a little there's a lib missing, or some flag or something.. because what I see comparing other OTs I can't see any bigger difference.
The sources I'm trying to compile on ubuntu, have been successfully compiled on windows 7 several times.
g++ -I. -I/usr/include/libxml2 -I/usr/include/mysql -I/usr/include/lua5.1 -I/usr /include/lua5.2 -Wall -O1 -D_THREAD_SAFE -D_REENTRANT -D__NO_HOMEDIR_CONF__ -D__ USE_MYSQL__ -o ./TheForgottenServer account.o actions.o admin.o allocator.o ban. o baseevents.o beds.o creature.o creatureevent.o chat.o combat.o commands.o cond ition.o configmanager.o connection.o container.o cylinder.o database.o databasem ysql.o databasesqlite.o depot.o exception.o fileloader.o game.o gui.o house.o ho usetile.o ioguild.o iologindata.o iomap.o iomapserialize.o inputbox.o item.o ite ms.o logger.o luascript.o mailbox.o map.o md5.o monster.o monsters.o movement.o networkmessage.o npc.o otserv.o outfit.o outputmessage.o party.o player.o player box.o position.o protocol.o protocolgame.o protocollogin.o quests.o raids.o rsa. o scheduler.o scriptmanager.o server.o sha1.o spawn.o spells.o status.o talkacti on.o tasks.o teleport.o textlogger.o thing.o tile.o tools.o trashholder.o vocati on.o waitlist.o weapons.o -L/usr/lib -lxml2 -lpthread -llua5.1 -lgmp -lmysqlcli ent -lboost_regex -lsqlite3 -llua5.1-sql-mysql -ldl -lboost_system -ldl
weapons.o: In function `Weapons::loadDefaults()':
weapons.cpp.text+0x1f5f): undefined reference to `Array<ItemType*>::getElement (unsigned int) const'
collect2: error: ld returned 1 exit status
make: *** [forgottenserver] Error 1
Any help would be highly appreciated!
edit: that smile is supposed to be : (
I tried use code tags but that made the bar like 500 miles wide..... <.<