• 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 Compiling The Forgotten Server latest source code - Last Update: 02/12/2010

Compiling Tags 0.2 ;p
Ofc im using Forgotten Dev-Cpp
Linkers:
Code:
-O1
-lboost_system
-lgmp
-lluasql_mysql
-lluasql_sqlite
-llua5.1
-lmysql
-lboost_regex
-lsqlite3
-lwsock32
-lxml2
-lws2_32
-s



Code:
Compiler: Default compiler
Building Makefile: "E:\forgottensource\forgottenserver\forgottenserver\tags\0.2\dev-cpp\Makefile.win"
Executing  make...
make.exe -f "E:\forgottensource\forgottenserver\forgottenserver\tags\0.2\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//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//ban.o obj//TheForgottenServer_private.res -o "TheForgottenServer.exe" -L"E:/Dev-Cpp/lib" -L"E:/Dev-Cpp/others/boost_1_33_1/libregex" -L"E:/Dev-Cpp/others/lua-5.1/lib" -mwindows -O1 -lboost_system -lgmp -lluasql_mysql -lluasql_sqlite -llua5.1 -lmysql -lboost_regex -lsqlite3 -lwsock32 -lxml2 -lmysql -lws2_32 -s  

obj//database.o(.text+0x1df9):database.cpp: undefined reference to `mysql_escape_string@12'
obj//databasemysql.o(.text+0x3a7):databasemysql.cpp: undefined reference to `mysql_init@4'
obj//databasemysql.o(.text+0x4c5):databasemysql.cpp: undefined reference to `mysql_real_connect@32'
obj//databasemysql.o(.text+0x4d4):databasemysql.cpp: undefined reference to `mysql_error@4'
obj//databasemysql.o(.text+0x54c):databasemysql.cpp: undefined reference to `mysql_close@4'
obj//databasemysql.o(.text+0x732):databasemysql.cpp: undefined reference to `mysql_real_query@12'
obj//databasemysql.o(.text+0x74b):databasemysql.cpp: undefined reference to `mysql_error@4'
obj//databasemysql.o(.text+0xa25):databasemysql.cpp: undefined reference to `mysql_errno@4'
obj//databasemysql.o(.text+0xff2):databasemysql.cpp: undefined reference to `mysql_real_escape_string@16'

obj//databasemysql.o(.text+0x12fa):databasemysql.cpp: undefined reference to `mysql_store_result@4'
obj//databasemysql.o(.text+0x1319):databasemysql.cpp: undefined reference to `mysql_error@4'
obj//databasemysql.o(.text+0x139c):databasemysql.cpp: undefined reference to `mysql_errno@4'
obj//databasemysql.o(.text+0x13e4):databasemysql.cpp: undefined reference to `mysql_num_fields@4'
obj//databasemysql.o(.text+0x1409):databasemysql.cpp: undefined reference to `mysql_fetch_fields@4'
obj//databasemysql.o(.text+0x18fb):databasemysql.cpp: undefined reference to `mysql_fetch_lengths@4'
obj//databasemysql.o(.text+0x193c):databasemysql.cpp: undefined reference to `mysql_fetch_row@4'
obj//databasemysql.o(.text+0x1961):databasemysql.cpp: undefined reference to `mysql_free_result@4'
obj//databasemysql.o(.text+0x19be):databasemysql.cpp: undefined reference to `mysql_rollback@4'
obj//databasemysql.o(.text+0x19d2):databasemysql.cpp: undefined reference to `mysql_error@4'
obj//databasemysql.o(.text+0x1a3c):databasemysql.cpp: undefined reference to `mysql_commit@4'
obj//databasemysql.o(.text+0x1a50):databasemysql.cpp: undefined reference to `mysql_error@4'
obj//luascript.o(.text+0x6fa6):luascript.cpp: undefined reference to `luaopen_luasql_mysql'
obj//luascript.o(.text+0x6fc0):luascript.cpp: undefined reference to `luaopen_luasql_sqlite3'

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

Execution terminated

What should i do? Can u help me? ;p BLAX
 
Last edited:
Compiling Tags 0.2 ;p
Ofc im using Forgotten Dev-Cpp
Linkers:
Code:
-O1
-lboost_system
-lgmp
-lluasql_mysql
-lluasql_sqlite
-llua5.1
-lmysql
-lboost_regex
-lsqlite3
-lwsock32
-lxml2
-lws2_32
-s



Code:
Compiler: Default compiler
Building Makefile: "E:\forgottensource\forgottenserver\forgottenserver\tags\0.2\dev-cpp\Makefile.win"
Executing  make...
make.exe -f "E:\forgottensource\forgottenserver\forgottenserver\tags\0.2\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//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//ban.o obj//TheForgottenServer_private.res -o "TheForgottenServer.exe" -L"E:/Dev-Cpp/lib" -L"E:/Dev-Cpp/others/boost_1_33_1/libregex" -L"E:/Dev-Cpp/others/lua-5.1/lib" -mwindows -O1 -lboost_system -lgmp -lluasql_mysql -lluasql_sqlite -llua5.1 -lmysql -lboost_regex -lsqlite3 -lwsock32 -lxml2 -lmysql -lws2_32 -s  

obj//database.o(.text+0x1df9):database.cpp: undefined reference to `mysql_escape_string@12'
obj//databasemysql.o(.text+0x3a7):databasemysql.cpp: undefined reference to `mysql_init@4'
obj//databasemysql.o(.text+0x4c5):databasemysql.cpp: undefined reference to `mysql_real_connect@32'
obj//databasemysql.o(.text+0x4d4):databasemysql.cpp: undefined reference to `mysql_error@4'
obj//databasemysql.o(.text+0x54c):databasemysql.cpp: undefined reference to `mysql_close@4'
obj//databasemysql.o(.text+0x732):databasemysql.cpp: undefined reference to `mysql_real_query@12'
obj//databasemysql.o(.text+0x74b):databasemysql.cpp: undefined reference to `mysql_error@4'
obj//databasemysql.o(.text+0xa25):databasemysql.cpp: undefined reference to `mysql_errno@4'
obj//databasemysql.o(.text+0xff2):databasemysql.cpp: undefined reference to `mysql_real_escape_string@16'

obj//databasemysql.o(.text+0x12fa):databasemysql.cpp: undefined reference to `mysql_store_result@4'
obj//databasemysql.o(.text+0x1319):databasemysql.cpp: undefined reference to `mysql_error@4'
obj//databasemysql.o(.text+0x139c):databasemysql.cpp: undefined reference to `mysql_errno@4'
obj//databasemysql.o(.text+0x13e4):databasemysql.cpp: undefined reference to `mysql_num_fields@4'
obj//databasemysql.o(.text+0x1409):databasemysql.cpp: undefined reference to `mysql_fetch_fields@4'
obj//databasemysql.o(.text+0x18fb):databasemysql.cpp: undefined reference to `mysql_fetch_lengths@4'
obj//databasemysql.o(.text+0x193c):databasemysql.cpp: undefined reference to `mysql_fetch_row@4'
obj//databasemysql.o(.text+0x1961):databasemysql.cpp: undefined reference to `mysql_free_result@4'
obj//databasemysql.o(.text+0x19be):databasemysql.cpp: undefined reference to `mysql_rollback@4'
obj//databasemysql.o(.text+0x19d2):databasemysql.cpp: undefined reference to `mysql_error@4'
obj//databasemysql.o(.text+0x1a3c):databasemysql.cpp: undefined reference to `mysql_commit@4'
obj//databasemysql.o(.text+0x1a50):databasemysql.cpp: undefined reference to `mysql_error@4'
obj//luascript.o(.text+0x6fa6):luascript.cpp: undefined reference to `luaopen_luasql_mysql'
obj//luascript.o(.text+0x6fc0):luascript.cpp: undefined reference to `luaopen_luasql_sqlite3'

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

Execution terminated

What should i do? Can u help me? ;p BLAX

C++ compiler definitions please

i have error :((


what's this??

That error says nothing to me
 
Boost package is missing.You either didn't download the dev-c++ of the first post or you did not add one of the boost linkers
 
:confused: I downloaded the Dev-C++ of your first post, and I added the things you said to the linkers/compiler c++.

On Dev-C++, dir. of libraries and dir. of include is missing, what must I put there?

I have the boost package If you included it on the Dev-C++ of your first post.

Thanks!

PD: I use the sources of the Trunk folder.
 
Last edited:
@up:
To compile u need Dev-C++ compiler... Xampp is for websites lol...
 
Im using Tags folder with linker
-O1
-lboost_system
-lgmp
-lluasql_mysql
-lluasql_sqlite
-llua5.1
-lmysql
-lboost_regex
-lsqlite3
-lwsock32
-lxml2
-lws2_32
-s



[Resource error] can't open icon file `TheForgottenServer.ico': No such file or directory

C:\Documents and Settings\Jimmy Nyhlen\Skrivbord\Forgotten Sources\Project\Makefile.win [Build Error] [Project2_private.res] Error 1

Probably something stupid and easy to fix.. But i just cant get my fingers on it! Help someone? :p
 
Im using Tags folder with linker
-O1
-lboost_system
-lgmp
-lluasql_mysql
-lluasql_sqlite
-llua5.1
-lmysql
-lboost_regex
-lsqlite3
-lwsock32
-lxml2
-lws2_32
-s



[Resource error] can't open icon file `TheForgottenServer.ico': No such file or directory

C:\Documents and Settings\Jimmy Nyhlen\Skrivbord\Forgotten Sources\Project\Makefile.win [Build Error] [Project2_private.res] Error 1

Probably something stupid and easy to fix.. But i just cant get my fingers on it! Help someone? :p

Just find the icon of TFS and move it to your project folder. But is outdated, well atleast when i tryed to open my server the attributes didnt work.
 
Code:
Compiler: Default compiler
Building Makefile: "C:\Documents and Settings\Dave\Desktop\Forgotten Sources\Project\Makefile.win"
Executing  make...
make.exe -f "C:\Documents and Settings\Dave\Desktop\Forgotten Sources\Project\Makefile.win" all
windres.exe -i TheForgottenServer_private.rc --input-format=rc -o TheForgottenServer_private.res -O coff 

g++.exe ../beds.o ../chat.o ../combat.o ../commands.o ../condition.o ../configmanager.o ../connection.o ../container.o ../creature.o ../creatureevent.o ../cylinder.o ../database.o ../databasemysql.o ../databasesqlite.o ../depot.o ../exception.o ../fileloader.o ../game.o ../gameservers.o ../gui.o ../house.o ../housetile.o ../inputbox.o ../ioban.o ../ioguild.o ../iologindata.o ../iomap.o ../iomapserialize.o ../item.o ../items.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 ../playerbox.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 ../talkaction.o ../tasks.o ../teleport.o ../textlogger.o ../thing.o ../tile.o ../tools.o ../trashholder.o ../vocation.o ../waitlist.o ../weapons.o ../account.o ../actions.o ../admin.o ../allocator.o ../baseevents.o TheForgottenServer_private.res -o "TheForgottenServer.exe" -L"C:/Documents and Settings/Dave/Desktop/Dev-Cpp/lib" -mwindows -O1 -lboost_system -lgmp -llua5.1 -lmysql -lregex -lsqlite3 -lwsock32 -lxml2 -lmysql -lws2_32 -s  

ld: cannot find -lregex

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

Execution terminated

vieixz.jpg


Please help ?
 
Code:
Compiler: Default compiler
Building Makefile: "C:\Documents and Settings\Dave\Desktop\Forgotten Sources\Project\Makefile.win"
Executing  make...
make.exe -f "C:\Documents and Settings\Dave\Desktop\Forgotten Sources\Project\Makefile.win" all
windres.exe -i TheForgottenServer_private.rc --input-format=rc -o TheForgottenServer_private.res -O coff 

g++.exe ../beds.o ../chat.o ../combat.o ../commands.o ../condition.o ../configmanager.o ../connection.o ../container.o ../creature.o ../creatureevent.o ../cylinder.o ../database.o ../databasemysql.o ../databasesqlite.o ../depot.o ../exception.o ../fileloader.o ../game.o ../gameservers.o ../gui.o ../house.o ../housetile.o ../inputbox.o ../ioban.o ../ioguild.o ../iologindata.o ../iomap.o ../iomapserialize.o ../item.o ../items.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 ../playerbox.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 ../talkaction.o ../tasks.o ../teleport.o ../textlogger.o ../thing.o ../tile.o ../tools.o ../trashholder.o ../vocation.o ../waitlist.o ../weapons.o ../account.o ../actions.o ../admin.o ../allocator.o ../baseevents.o TheForgottenServer_private.res -o "TheForgottenServer.exe" -L"C:/Documents and Settings/Dave/Desktop/Dev-Cpp/lib" -mwindows -O1 -lboost_system -lgmp -llua5.1 -lmysql -lregex -lsqlite3 -lwsock32 -lxml2 -lmysql -lws2_32 -s  

ld: cannot find -lregex

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

Execution terminated

vieixz.jpg


Please help ?


Try libboost_regex instead of libregex <Tala said that on TFS hosted board.
 
ah i had this error yesterday myself, was too tired to investigate but ill try it now. Thnx
 
when i try to load up the server it says
this application wwas failed to start because lua5.1.dll was not found. reinstalling this application may fix this problem.......
 
um no u need the all the .dll files to run the server lol, you can find them on the download section of the forum under Open Tibia
 
Back
Top