• 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

Seems like a missing file, use code tags next time so I can read it
 
wtf

Code:
  [Resource error] can't open icon file `TheForgottenServer.ico': No such file or directory 
 E:\TheForgottenServer-Source\project\Makefile.win [Build Error]  [TheForgottenServer-Source_private.res] Error 1
 
Code:
The_Forgotten_Server_private.rc:0: fatal error: when writing output to : No such file or directory
compilation terminated. windres.exe: can't open icon file `TheForgottenServer.ico': No such file or directory
windres.exe: preprocessing failed. make.exe: *** [The_Forgotten_Server_private.res] Error 1 Execution terminated

I got these errors, help plcks? D;
 
Move TheForgottenServer.ico file into the Dev-cpp folder of the source code
 
I do everything and I go to compile, and it gives me 502 errors and doesn't compile, what did I do wrong?
 
Code:
[Linker error] undefined reference to `_CreateFontIndirectA@4' 
[Linker error] undefined reference to `_CreateFontIndirectA@4' 
[Linker error] undefined reference to `_DeleteObject@4' 
[Linker error] undefined reference to `_luaopen_luasql_mysql' 
[Linker error] undefined reference to `_luaopen_luasql_sqlite3' 
 C:\Users\zniC\Desktop\war\compile\0.2.4\project\Makefile.win [Build Error]  [tfs0.2.4] Error 1
or
Code:
Compiler: Default compiler
Building Makefile: "C:\Users\zniC\Desktop\amor war\compile\0.2.4\project\Makefile.win"
Executing  make...
make.exe -f "C:\Users\zniC\Desktop\amor war\compile\0.2.4\project\Makefile.win" all
windres.exe -i tfs0.2.4_private.rc --input-format=rc -o tfs0.2.4_private.res -O coff 

g++.exe ../account.o ../actions.o ../admin.o ../allocator.o ../ban.o ../baseevents.o ../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 ../gui.o ../house.o ../housetile.o ../inputbox.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 ../protocolold.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 ../waitlist.o ../weapons.o ../vocation.o tfs0.2.4_private.res -o "tfs0.2.4" -L"C:/Users/zniC/Desktop/amor war/compile/Dev-Cpp/lib" -O1 -lboost_system -lgmp -llua5.1 -lmysql -lboost_regex -lsqlite3 -lwsock32 -lxml2 -lmysql -lws2_32 -s  

../gui.o:gui.cpp:(.text+0x223): undefined reference to `_CreateFontIndirectA@4'
../inputbox.o:inputbox.cpp:(.text+0x467): undefined reference to `_CreateFontIndirectA@4'
../inputbox.o:inputbox.cpp:(.text+0x6f9): undefined reference to `_DeleteObject@4'

../luascript.o:luascript.cpp:(.text+0x4251): undefined reference to `_luaopen_luasql_mysql'
../luascript.o:luascript.cpp:(.text+0x4268): undefined reference to `_luaopen_luasql_sqlite3'

make.exe: *** [tfs0.2.4] Error 1

Execution terminated
hmm? :)
 
Note for all: If you have downloaded Forgotten Dev-Cpp, you can't have installed already dev on hdd, cause forgotten dev will load libraries from normal ;)
 
Code:
[Linker error] undefined reference to `_CreateFontIndirectA@4' 
[Linker error] undefined reference to `_CreateFontIndirectA@4' 
[Linker error] undefined reference to `_DeleteObject@4' 
[Linker error] undefined reference to `_luaopen_luasql_mysql' 
[Linker error] undefined reference to `_luaopen_luasql_sqlite3' 
 C:\Users\zniC\Desktop\war\compile\0.2.4\project\Makefile.win [Build Error]  [tfs0.2.4] Error 1
or
Code:
Compiler: Default compiler
Building Makefile: "C:\Users\zniC\Desktop\amor war\compile\0.2.4\project\Makefile.win"
Executing  make...
make.exe -f "C:\Users\zniC\Desktop\amor war\compile\0.2.4\project\Makefile.win" all
windres.exe -i tfs0.2.4_private.rc --input-format=rc -o tfs0.2.4_private.res -O coff 

g++.exe ../account.o ../actions.o ../admin.o ../allocator.o ../ban.o ../baseevents.o ../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 ../gui.o ../house.o ../housetile.o ../inputbox.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 ../protocolold.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 ../waitlist.o ../weapons.o ../vocation.o tfs0.2.4_private.res -o "tfs0.2.4" -L"C:/Users/zniC/Desktop/amor war/compile/Dev-Cpp/lib" -O1 -lboost_system -lgmp -llua5.1 -lmysql -lboost_regex -lsqlite3 -lwsock32 -lxml2 -lmysql -lws2_32 -s  

../gui.o:gui.cpp:(.text+0x223): undefined reference to `_CreateFontIndirectA@4'
../inputbox.o:inputbox.cpp:(.text+0x467): undefined reference to `_CreateFontIndirectA@4'
../inputbox.o:inputbox.cpp:(.text+0x6f9): undefined reference to `_DeleteObject@4'

../luascript.o:luascript.cpp:(.text+0x4251): undefined reference to `_luaopen_luasql_mysql'
../luascript.o:luascript.cpp:(.text+0x4268): undefined reference to `_luaopen_luasql_sqlite3'

make.exe: *** [tfs0.2.4] Error 1

Execution terminated
hmm? :)
take a look please
 
what's your linkers?

Edit: I will be updating the tutorial tomorrow or today maybe, stay tuned.
 
The ones you provided :p And I'm compiling 0.2.4 (I guess you noticed)

edit: i loaded ../../../../../Dev-Cpp/lib/libboost_regex.a instead of -lboost_regex and now all I get is;
Code:
[Linker error] undefined reference to `_luaopen_luasql_mysql'  
[Linker error] undefined reference to `_luaopen_luasql_sqlite3' 
 C:\Users\zniC\Desktop\amor war\compile\0.2.4\project\Makefile.win [Build Error]  [tfs0.2.4] Error 1
 
Last edited:
try these:
Code:
-O1
-lboost_regex
-lboost_system
-lgmp
-lluasql_mysql
-lluasql_sqlite
-llua5.1
-lmysql
-lsqlite3
-lwsock32
-lxml2
-lmysql
-lws2_32
-s
 
Works. I love you.

edit: oh and, you have any clue how I can disable the choose outfit window when logging in for the first time? It's important.

Thanks again
 
Nevermind :)

ediit: oh and thanks for the help again ;D
 
Last edited:
[Linker error] undefined reference to `boost::filesystem::detail::status_api(std::string const&, boost::system::error_code&)'
[Linker error] undefined reference to `boost::filesystem::detail::dir_itr_increment(void*&, std::string&, boost::filesystem::file_status&, boost::filesystem::file_status&)'
[Linker error] undefined reference to `boost::filesystem::detail::status_api(std::string const&, boost::system::error_code&)'
[Linker error] undefined reference to `boost::filesystem::detail::not_found_error()'
[Linker error] undefined reference to `boost::filesystem::detail::dir_itr_first(void*&, std::string const&, std::string&, boost::filesystem::file_status&, boost::filesystem::file_status&)'
[Linker error] undefined reference to `boost::filesystem::detail::dir_itr_close(void*&)'
C:\Users\Dany\Desktop\tmp\trunk\KilOTs Project\Makefile.win [Build Error] ["KilOTs] Error 1


what's this? :S
 
-Tutorial fully updated, now you should not have lboost_regex problems.-
 
Back
Top