• 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 Can't compile tag 0.2

Jester

Off
Senator
Joined
May 28, 2007
Messages
2,683
Reaction score
56
Location
Romania.
Parameters

C++ Compiler
Code:
-D__NO_HOMEDIR_CONF__
-D__USE_MYSQL__
-D__USE_SQLITE__

Linker
Code:
-O1
-lboost_system
-lgmp
[I][COLOR=Red]-lluasql-mysql
-lluasql-sqlite3[/COLOR][/I]
-llua5.1
-lmysql
-lregex
-lsqlite3
-lwsock32
-lxml2
-lmysql
-lws2_32
-s

These are the original settings from TFS.dev from latest sources, 0.2 tag and not trunk.
Note: i replaced -lregex to -lboost_regex

And this is the error.

PHP:
 cannot find -lluasql-mysql
 
use this
Code:
-O1
-lboost_system
-lgmp
-lluasql_mysql
-lluasql_sqlite
-llua5.1
-lmysql
-lboost_regex
-lsqlite3
-lwsock32
-lxml2
-lmysql
-lws2_32
-s
 
I get once again the 123 errors. Thanks anyways for the help.

PHP:
Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Makefile.win"
Executing  make...
make.exe -f "C:\Dev-Cpp\Makefile.win" all
windres.exe -i TheForgottenServer_private.rc --input-format=rc -o obj//TheForgottenServer_private.res -O coff 

g++.exe obj//account.o obj//actions.o obj//admin.o obj//allocator.o obj//ban.o obj//baseevents.o obj//beds.o obj//chat.o obj//combat.o obj//commands.o obj//condition.o obj//configmanager.o obj//connection.o obj//container.o obj//creature.o obj//creatureevent.o obj//cylinder.o obj//database.o obj//databasemysql.o obj//databasesqlite.o obj//depot.o obj//exception.o obj//fileloader.o obj//game.o obj//gui.o obj//house.o obj//housetile.o obj//inputbox.o obj//ioguild.o obj//iologindata.o obj//iomap.o obj//iomapserialize.o obj//item.o obj//items.o obj//logger.o obj//luascript.o obj//mailbox.o obj//map.o obj//md5.o obj//monster.o obj//monsters.o obj//movement.o obj//networkmessage.o obj//npc.o obj//otserv.o obj//outfit.o obj//outputmessage.o obj//party.o obj//player.o obj//playerbox.o obj//position.o obj//protocol.o obj//protocolgame.o obj//protocollogin.o obj//quests.o obj//raids.o obj//rsa.o obj//scheduler.o obj//scriptmanager.o obj//server.o obj//sha1.o obj//spawn.o obj//spells.o obj//status.o obj//talkaction.o obj//tasks.o obj//teleport.o obj//textlogger.o obj//thing.o obj//tile.o obj//tools.o obj//trashholder.o obj//vocation.o obj//waitlist.o obj//weapons.o obj//TheForgottenServer_private.res -o "TheForgottenServer.exe" -L"C:/Dev-Cpp/lib" -mwindows -O1 -lboost_system -lgmp -lluasql_mysql -lluasql_sqlite -llua5.1 -lmysql -lboost_regex -lsqlite3 -lwsock32 -lxml2 -lmysql -lws2_32 -s  

obj//ban.o:ban.cpp:(.text+0x406a): undefined reference to `DBResult::DBResult()'
obj//ban.o:ban.cpp:(.text+0x40ce): undefined reference to `DBResult::~DBResult()'
obj//ban.o:ban.cpp:(.text+0x4182): undefined reference to `DBResult::getDataInt(std::string const&, unsigned int)'
obj//ban.o:ban.cpp:(.text+0x425d): undefined reference to `DBResult::getDataInt(std::string const&, unsigned int)'
obj//ban.o:ban.cpp:(.text+0x4325): undefined reference to `DBResult::getDataInt(std::string const&, unsigned int)'
obj//ban.o:ban.cpp:(.text+0x43e6): undefined reference to `DBResult::getDataInt(std::string const&, unsigned int)'
obj//ban.o:ban.cpp:(.text+0x450d): undefined reference to `DBResult::getDataInt(std::string const&, unsigned int)'
obj//ban.o:ban.cpp:(.text+0x45f5): more undefined references to `DBResult::getDataInt(std::string const&, unsigned int)' follow
obj//ban.o:ban.cpp:(.text+0x490a): undefined reference to `DBResult::getDataString(std::string const&, unsigned int)'
obj//ban.o:ban.cpp:(.text+0x49c8): undefined reference to `DBResult::getDataInt(std::string const&, unsigned int)'
obj//ban.o:ban.cpp:(.text+0x4b98): undefined reference to `DBResult::getDataInt(std::string const&, unsigned int)'
obj//ban.o:ban.cpp:(.text+0x4c59): undefined reference to `DBResult::getDataInt(std::string const&, unsigned int)'
obj//ban.o:ban.cpp:(.text+0x4d2b): undefined reference to `DBResult::getDataString(std::string const&, unsigned int)'
obj//ban.o:ban.cpp:(.text+0x4de9): undefined reference to `DBResult::getDataInt(std::string const&, unsigned int)'
obj//ban.o:ban.cpp:(.text+0x4f84): undefined reference to `DBResult::getDataInt(std::string const&, unsigned int)'
obj//ban.o:ban.cpp:(.text+0x504c): undefined reference to `DBResult::getDataInt(std::string const&, unsigned int)'

obj//ban.o:ban.cpp:(.text+0x510d): undefined reference to `DBResult::getDataInt(std::string const&, unsigned int)'
obj//ban.o:ban.cpp:(.text+0x51ce): undefined reference to `DBResult::getDataInt(std::string const&, unsigned int)'
obj//ban.o:ban.cpp:(.text+0x5299): undefined reference to `DBResult::getDataString(std::string const&, unsigned int)'
obj//ban.o:ban.cpp:(.text+0x5357): undefined reference to `DBResult::getDataInt(std::string const&, unsigned int)'
obj//ban.o:ban.cpp:(.text+0x569d): undefined reference to `DBResult::~DBResult()'
obj//ban.o:ban.cpp:(.text+0x56d9): undefined reference to `DBResult::~DBResult()'
obj//ban.o:ban.cpp:(.text+0x5803): undefined reference to `DBTransaction::DBTransaction(_Database*)'
obj//ban.o:ban.cpp:(.text+0x581b): undefined reference to `DBTransaction::start()'
obj//ban.o:ban.cpp:(.text+0x5837): undefined reference to `DBTransaction::~DBTransaction()'

obj//ban.o:ban.cpp:(.text+0x58b2): undefined reference to `DBTransaction::~DBTransaction()'
obj//ban.o:ban.cpp:(.text+0x5914): undefined reference to `DBSplitInsert::DBSplitInsert(_Database*)'
obj//ban.o:ban.cpp:(.text+0x596e): undefined reference to `DBSplitInsert::setQuery(std::string const&)'
obj//ban.o:ban.cpp:(.text+0x5c33): undefined reference to `DBSplitInsert::addRow(std::string const&)'
obj//ban.o:ban.cpp:(.text+0x5e6b): undefined reference to `DBSplitInsert::executeQuery()'
obj//ban.o:ban.cpp:(.text+0x5e87): undefined reference to `DBSplitInsert::~DBSplitInsert()'
obj//ban.o:ban.cpp:(.text+0x5e9f): undefined reference to `DBTransaction::~DBTransaction()'
obj//ban.o:ban.cpp:(.text+0x5f27): undefined reference to `DBSplitInsert::setQuery(std::string const&)'
obj//ban.o:ban.cpp:(.text+0x6190): undefined reference to `DBSplitInsert::addRow(std::string const&)'
obj//ban.o:ban.cpp:(.text+0x63cb): undefined reference to `DBSplitInsert::executeQuery()'
obj//ban.o:ban.cpp:(.text+0x63e7): undefined reference to `DBSplitInsert::~DBSplitInsert()'

obj//ban.o:ban.cpp:(.text+0x63ff): undefined reference to `DBTransaction::~DBTransaction()'
obj//ban.o:ban.cpp:(.text+0x6487): undefined reference to `DBSplitInsert::setQuery(std::string const&)'
obj//ban.o:ban.cpp:(.text+0x6967): undefined reference to `DBSplitInsert::addRow(std::string const&)'
obj//ban.o:ban.cpp:(.text+0x6ba2): undefined reference to `DBSplitInsert::executeQuery()'
obj//ban.o:ban.cpp:(.text+0x6bbe): undefined reference to `DBSplitInsert::~DBSplitInsert()'
obj//ban.o:ban.cpp:(.text+0x6bd6): undefined reference to `DBTransaction::~DBTransaction()'
obj//ban.o:ban.cpp:(.text+0x6c5e): undefined reference to `DBSplitInsert::setQuery(std::string const&)'
obj//ban.o:ban.cpp:(.text+0x70fc): undefined reference to `DBSplitInsert::addRow(std::string const&)'
obj//ban.o:ban.cpp:(.text+0x7337): undefined reference to `DBSplitInsert::executeQuery()'
obj//ban.o:ban.cpp:(.text+0x7353): undefined reference to `DBSplitInsert::~DBSplitInsert()'
obj//ban.o:ban.cpp:(.text+0x736b): undefined reference to `DBTransaction::~DBTransaction()'

obj//ban.o:ban.cpp:(.text+0x73f3): undefined reference to `DBSplitInsert::setQuery(std::string const&)'
obj//ban.o:ban.cpp:(.text+0x78b6): undefined reference to `DBSplitInsert::addRow(std::string const&)'

obj//ban.o:ban.cpp:(.text+0x7cdc): undefined reference to `DBSplitInsert::executeQuery()'
obj//ban.o:ban.cpp:(.text+0x7cf8): undefined reference to `DBSplitInsert::~DBSplitInsert()'
obj//ban.o:ban.cpp:(.text+0x7d10): undefined reference to `DBTransaction::~DBTransaction()'
obj//ban.o:ban.cpp:(.text+0x7d4f): undefined reference to `DBTransaction::success()'
obj//ban.o:ban.cpp:(.text+0x7d70): undefined reference to `DBSplitInsert::~DBSplitInsert()'
obj//ban.o:ban.cpp:(.text+0x7d88): undefined reference to `DBTransaction::~DBTransaction()'
obj//ban.o:ban.cpp:(.text+0x7dc9): undefined reference to `DBSplitInsert::~DBSplitInsert()'
obj//ban.o:ban.cpp:(.text+0x7de1): undefined reference to `DBTransaction::~DBTransaction()'
obj//ban.o:ban.cpp:(.text+0x7e29): undefined reference to `DBSplitInsert::~DBSplitInsert()'
obj//ban.o:ban.cpp:(.text+0x7e41): undefined reference to `DBTransaction::~DBTransaction()'
obj//ban.o:ban.cpp:(.text+0x7e80): undefined reference to `DBSplitInsert::~DBSplitInsert()'
obj//ban.o:ban.cpp:(.text+0x7e98): undefined reference to `DBTransaction::~DBTransaction()'
obj//ban.o:ban.cpp:(.text+0x7ed7): undefined reference to `DBSplitInsert::~DBSplitInsert()'

obj//ban.o:ban.cpp:(.text+0x7eef): undefined reference to `DBTransaction::~DBTransaction()'
obj//ban.o:ban.cpp:(.text+0x7f2e): undefined reference to `DBSplitInsert::~DBSplitInsert()'
obj//ban.o:ban.cpp:(.text+0x7f46): undefined reference to `DBTransaction::~DBTransaction()'
obj//ban.o:ban.cpp:(.text+0x7f82): undefined reference to `DBSplitInsert::~DBSplitInsert()'
obj//ban.o:ban.cpp:(.text+0x7f9a): undefined reference to `DBTransaction::~DBTransaction()'
obj//commands.o:commands.cpp:(.text+0x1b4d4): undefined reference to `IOBan::isBanished(unsigned int)'
obj//commands.o:commands.cpp:(.text+0x1b524): undefined reference to `IOBan::removeBanishment(unsigned int)'
obj//commands.o:commands.cpp:(.text+0x1b7a5): undefined reference to `IOBan::isDeleted(unsigned int)'
obj//commands.o:commands.cpp:(.text+0x1b7f5): undefined reference to `IOBan::removeDeletion(unsigned int)'
obj//commands.o:commands.cpp:(.text+0x22df4): undefined reference to `IOBan::isBanished(unsigned int)'
obj//commands.o:commands.cpp:(.text+0x22e99): undefined reference to `IOBan::getBannedBy(unsigned int, bool)'
obj//commands.o:commands.cpp:(.text+0x22f0c): undefined reference to `IOBan::getBannedBy(unsigned int, bool)'

obj//commands.o:commands.cpp:(.text+0x22f8a): undefined reference to `IOBan::getBanTime(unsigned int, bool)'
obj//commands.o:commands.cpp:(.text+0x22ff0): undefined reference to `IOBan::getComment(unsigned int, bool)'
obj//commands.o:commands.cpp:(.text+0x23056): undefined reference to `IOBan::getAction(unsigned int, bool)'
obj//commands.o:commands.cpp:(.text+0x230d9): undefined reference to `IOBan::getReason(unsigned int, bool)'
obj//commands.o:commands.cpp:(.text+0x239b6): undefined reference to `IOBan::isDeleted(unsigned int)'
obj//commands.o:commands.cpp:(.text+0x23a6a): undefined reference to `IOBan::getBannedBy(unsigned int, bool)'
obj//commands.o:commands.cpp:(.text+0x23ae3): undefined reference to `IOBan::getBannedBy(unsigned int, bool)'
obj//commands.o:commands.cpp:(.text+0x23b64): undefined reference to `IOBan::getBanTime(unsigned int, bool)'
obj//commands.o:commands.cpp:(.text+0x23bcd): undefined reference to `IOBan::getComment(unsigned int, bool)'
obj//commands.o:commands.cpp:(.text+0x23c33): undefined reference to `IOBan::getAction(unsigned int, bool)'
obj//commands.o:commands.cpp:(.text+0x23cb0): undefined reference to `IOBan::getReason(unsigned int, bool)'
obj//game.o:game.cpp:(.text+0x294e3): undefined reference to `IOBan::getNotationsCount(unsigned int)'
obj//game.o:game.cpp:(.text+0x295c8): undefined reference to `IOBan::addDeletion(unsigned int, unsigned int, unsigned int, std::string, unsigned int)'
obj//game.o:game.cpp:(.text+0x296ff): undefined reference to `IOBan::addBanishment(unsigned int, long, unsigned int, unsigned int, std::string, unsigned int)'
obj//game.o:game.cpp:(.text+0x29819): undefined reference to `IOBan::addBanishment(unsigned int, long, unsigned int, unsigned int, std::string, unsigned int)'
obj//game.o:game.cpp:(.text+0x29906): undefined reference to `IOBan::addNamelock(unsigned int, unsigned int, unsigned int, std::string, unsigned int)'
obj//game.o:game.cpp:(.text+0x29a0b): undefined reference to `IOBan::addDeletion(unsigned int, unsigned int, unsigned int, std::string, unsigned int)'
obj//game.o:game.cpp:(.text+0x29b42): undefined reference to `IOBan::addBanishment(unsigned int, long, unsigned int, unsigned int, std::string, unsigned int)'
obj//game.o:game.cpp:(.text+0x29c5c): undefined reference to `IOBan::addBanishment(unsigned int, long, unsigned int, unsigned int, std::string, unsigned int)'
obj//game.o:game.cpp:(.text+0x29d38): undefined reference to `IOBan::addNamelock(unsigned int, unsigned int, unsigned int, std::string, unsigned int)'
obj//game.o:game.cpp:(.text+0x29e69): undefined reference to `IOBan::addBanishment(unsigned int, long, unsigned int, unsigned int, std::string, unsigned int)'
obj//game.o:game.cpp:(.text+0x29f9a): undefined reference to `IOBan::addBanishment(unsigned int, long, unsigned int, unsigned int, std::string, unsigned int)'
obj//game.o:game.cpp:(.text+0x2a06c): undefined reference to `IOBan::addNamelock(unsigned int, unsigned int, unsigned int, std::string, unsigned int)'
obj//game.o:game.cpp:(.text+0x2a171): undefined reference to `IOBan::addDeletion(unsigned int, unsigned int, unsigned int, std::string, unsigned int)'
obj//game.o:game.cpp:(.text+0x2a2a8): undefined reference to `IOBan::addBanishment(unsigned int, long, unsigned int, unsigned int, std::string, unsigned int)'
obj//game.o:game.cpp:(.text+0x2a3c2): undefined reference to `IOBan::addBanishment(unsigned int, long, unsigned int, unsigned int, std::string, unsigned int)'
obj//game.o:game.cpp:(.text+0x2a4d9): undefined reference to `IOBan::addIpBanishment(unsigned int, long, std::string, unsigned int)'
obj//player.o:player.cpp:(.text+0x1653a): undefined reference to `IOBan::addDeletion(unsigned int, unsigned int, unsigned int, std::string, unsigned int)'

obj//player.o:player.cpp:(.text+0x167bf): undefined reference to `IOBan::addBanishment(unsigned int, long, unsigned int, unsigned int, std::string, unsigned int)'
obj//player.o:player.cpp:(.text+0x16a21): undefined reference to `IOBan::addBanishment(unsigned int, long, unsigned int, unsigned int, std::string, unsigned int)'
obj//player.o:player.cpp:(.text+0x18619): undefined reference to `IOBan::removeNamelock(unsigned int)'

obj//playerbox.o:playerbox.cpp:(.text+0xecd): undefined reference to `IOBan::addDeletion(unsigned int, unsigned int, unsigned int, std::string, unsigned int)'

obj//protocolgame.o:protocolgame.cpp:(.text+0xa78): undefined reference to `IOBan::isNamelocked(unsigned int)'

obj//protocolgame.o:protocolgame.cpp:(.text+0x1002): undefined reference to `IOBan::isBanished(unsigned int)'
obj//protocolgame.o:protocolgame.cpp:(.text+0x1097): undefined reference to `IOBan::getBannedBy(unsigned int, bool)'
obj//protocolgame.o:protocolgame.cpp:(.text+0x10d9): undefined reference to `IOBan::getBannedBy(unsigned int, bool)'
obj//protocolgame.o:protocolgame.cpp:(.text+0x12a3): undefined reference to `IOBan::getBanTime(unsigned int, bool)'
obj//protocolgame.o:protocolgame.cpp:(.text+0x12d5): undefined reference to `IOBan::getComment(unsigned int, bool)'
obj//protocolgame.o:protocolgame.cpp:(.text+0x1307): undefined reference to `IOBan::getAction(unsigned int, bool)'
obj//protocolgame.o:protocolgame.cpp:(.text+0x1350): undefined reference to `IOBan::getReason(unsigned int, bool)'

obj//protocolgame.o:protocolgame.cpp:(.text+0x14c4): undefined reference to `IOBan::isDeleted(unsigned int)'
obj//protocolgame.o:protocolgame.cpp:(.text+0x1544): undefined reference to `IOBan::getBannedBy(unsigned int, bool)'
obj//protocolgame.o:protocolgame.cpp:(.text+0x1589): undefined reference to `IOBan::getBannedBy(unsigned int, bool)'
obj//protocolgame.o:protocolgame.cpp:(.text+0x1768): undefined reference to `IOBan::getBanTime(unsigned int, bool)'
obj//protocolgame.o:protocolgame.cpp:(.text+0x179d): undefined reference to `IOBan::getComment(unsigned int, bool)'
obj//protocolgame.o:protocolgame.cpp:(.text+0x17cf): undefined reference to `IOBan::getAction(unsigned int, bool)'
obj//protocolgame.o:protocolgame.cpp:(.text+0x1818): undefined reference to `IOBan::getReason(unsigned int, bool)'
obj//protocolgame.o:protocolgame.cpp:(.text+0x3dff): undefined reference to `IOBan::isIpBanished(unsigned int)'
obj//protocollogin.o:protocollogin.cpp:(.text+0xa62): undefined reference to `IOBan::isIpBanished(unsigned int)'

make.exe: *** [TheForgottenServer.exe] Error 1

Execution terminated
 
Hmm which rev is this? i will help u in a way or other.
i checked my linkers:
Code:
-O1
-lboost_system
-lgmp
-lluasql_mysql
-lluasql_sqlite
-llua5.1
-lmysql
-lboost_regex
-lsqlite3
-lwsock32
-lxml2
-lmysql
-lws2_32
-s
the same so i am sure prob is in ur rev. (or dev c++)
 
Found the error and as i said i compiled it for u guys
the error was in C++ Compiler:
Code:
-D__NO_HOMEDIR_CONF__
-D__USE_MYSQL__
-D__USE_SQLITE__
[b]-D__IGNORE_LISTEN_ERROR__[/b]
 
Back
Top