• 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

can anyone verify if thats safe?
1679-otlandverifiesassafe.png


I won't be updating this tutorial until TFS Dev-Cpp is updated too. This is because it would be easier for everyone of us and we will have a 100% safe source of Dev-Cpp.
 
download lib Upload Files / libboost_filesystem.zip - UploadHyper.com

Linker:

-lboost_filesystem
-O1
-lboost_system
-lgmp
-llua5.1
-lmysql
-lboost_regex
-lsqlite3
-lwsock32
-lxml2
-lmysql
-lws2_32
-s

C++ Compiler:

-D__USE_MYSQL__
-D__USE_SQLITE__
-D__ENABLE_SERVER_DIAGNOSTIC__
-D__CONSOLE__ <-- only console


please rep++ me :)

U have twice same libs (-lmysl), to compile as console u need chose "Console Application". If u whant GUI u need chose "Windows Application" and in c++ compiler put:
Code:
-D__USE_MYSQL__
-D__USE_SQLITE__
-D__ENABLE_SERVER_DIAGNOSTIC__
 
Doesn't Working this tuto :S

Error: cannot find lboost filesystem, and pinocho3000 replacing the file also doesn't work.

Some Idea to fix it?

[Linker error] undefined reference to `boost::system::get_posix_category()'

Pd. Can you Upload ur Dev-C++ for compilling?
 
Last edited:
Doesn't Working this tuto :S

Error: cannot find lboost filesystem, and pinocho3000 replacing the file also doesn't work.

Some Idea to fix it?

[Linker error] undefined reference to `boost::system::get_posix_category()'

Pd. Can you Upload ur Dev-C++ for compilling?

Try the one I already have.
 
bump~i get 6 errors @60% compiling tfs 0.2.2

In member function bool...
'cout' is not a member of 'stf'
build error
...

what am I doing wrong? followed the tutorial from A to Z
 
- Fixed a little typo (but serious) in the tutorial, now it should compile perfectly. -
 
I get this error when trying to compile TFLS with this tutorial, anyhelp please? :)
Code:
Kompilator: Default compiler
Building Makefile: "C:\Users\tompan\Desktop\trunk.r24\project\Makefil e.win"
Kör make...
make.exe -f "C:\Users\tompan\Desktop\trunk.r24\project\Makefil e.win" all
g++.exe -c ../configmanager.cpp -o ../configmanager.o -I"C:/Users/tompan/Desktop/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Users/tompan/Desktop/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Users/tompan/Desktop/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Users/tompan/Desktop/Dev-Cpp/include/c++/3.4.2" -I"C:/Users/tompan/Desktop/Dev-Cpp/include" -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -D__CONSOLE__ 

In file included from ../configmanager.cpp:23:

../configmanager.h:28:18: lua.h: No such file or directory
../configmanager.h:29:22: lauxlib.h: No such file or directory
../configmanager.h:30:21: lualib.h: No such file or directory
In file included from ../configmanager.cpp:23:
../configmanager.h:110: error: expected `;' before '(' token
../configmanager.h:111: error: expected `;' before '(' token
../configmanager.h:112: error: expected `;' before '(' token
../configmanager.h:113: error: expected `;' before '(' token
../configmanager.h:116: error: ISO C++ forbids declaration of `lua_State' with no type
../configmanager.h:116: error: expected `;' before '*' token

In file included from ../configmanager.cpp:24:

../tools.h:27:27: libxml/parser.h: No such file or directory
../tools.h:28:31: boost/tokenizer.hpp: No such file or directory

In file included from ../configmanager.cpp:24:

../tools.h:34: error: `boost' has not been declared
../tools.h:34: error: expected init-declarator before '<' token
../tools.h:34: error: expected `,' or `;' before '<' token
../tools.h:64: error: `xmlNodePtr' was not declared in this scope
../tools.h:64: error: expected primary-expression before "const"
../tools.h:64: error: expected primary-expression before "int"
../tools.h:64: error: initializer expression list treated as compound expression
../tools.h:68: error: `xmlNodePtr' was not declared in this scope
../tools.h:68: error: expected primary-expression before "const"
../tools.h:68: error: expected primary-expression before '&' token
../tools.h:68: error: `value' was not declared in this scope

../tools.h:68: error: initializer expression list treated as compound expression
../tools.h:69: error: `xmlNodePtr' was not declared in this scope
../tools.h:69: error: expected primary-expression before "const"
../tools.h:69: error: expected primary-expression before "float"
../tools.h:69: error: initializer expression list treated as compound expression
../tools.h:70: error: `xmlNodePtr' was not declared in this scope
../tools.h:70: error: expected primary-expression before "const"

../tools.h:70: error: expected primary-expression before '&' token
../tools.h:70: error: `value' was not declared in this scope
../tools.h:70: error: initializer expression list treated as compound expression
../tools.h:71: error: `xmlNodePtr' was not declared in this scope
../tools.h:71: error: expected primary-expression before '&' token
../tools.h:71: error: `value' was not declared in this scope
../tools.h:71: error: initializer expression list treated as compound expression
../tools.h:89: error: `tokenizer' has not been declared
../tools.h:89: error: `iterator' was not declared in this scope
../tools.h:89: error: `it' was not declared in this scope

../tools.h:89: error: `tokenizer' has not been declared
../tools.h:89: error: `iterator' was not declared in this scope
../configmanager.cpp: In constructor `ConfigManager::ConfigManager()':
../configmanager.cpp:29: error: `L' undeclared (first use this function)
../configmanager.cpp:29: error: (Each undeclared identifier is reported only once for each function it appears in.)
../configmanager.cpp: In member function `bool ConfigManager::load()':
../configmanager.cpp:44: error: `L' undeclared (first use this function)
../configmanager.cpp:45: error: `lua_close' undeclared (first use this function)
../configmanager.cpp:47: error: `lua_open' undeclared (first use this function)
../configmanager.cpp:51: error: `luaL_dofile' undeclared (first use this function)
../configmanager.cpp:62: error: `getGlobalString' undeclared (first use this function)
../configmanager.cpp:65: error: `getGlobalNumber' undeclared (first use this function)
../configmanager.cpp:89: error: `getGlobalBool' undeclared (first use this function)

../configmanager.cpp: At global scope:
../configmanager.cpp:190: error: `std::string ConfigManager::getGlobalString' is not a static member of `class ConfigManager'
../configmanager.cpp:190: error: `lua_State' was not declared in this scope
../configmanager.cpp:190: error: `_L' was not declared in this scope
../configmanager.cpp:190: error: expected primary-expression before "const"
../configmanager.cpp:190: error: expected primary-expression before "const"
../configmanager.cpp:191: error: expected `,' or `;' before '{' token
../configmanager.cpp:206: error: `bool ConfigManager::getGlobalBool' is not a static member of `class ConfigManager'
../configmanager.cpp:206: error: `lua_State' was not declared in this scope
../configmanager.cpp:206: error: `_L' was not declared in this scope
../configmanager.cpp:206: error: expected primary-expression before "const"
../configmanager.cpp:206: error: expected primary-expression before "const"
../configmanager.cpp:207: error: initializer expression list treated as compound expression
../configmanager.cpp:207: error: expected `,' or `;' before '{' token
../configmanager.cpp:211: error: `int32_t ConfigManager::getGlobalNumber' is not a static member of `class ConfigManager'
../configmanager.cpp:211: error: `lua_State' was not declared in this scope
../configmanager.cpp:211: error: `_L' was not declared in this scope

../configmanager.cpp:211: error: expected primary-expression before "const"
../configmanager.cpp:211: error: expected primary-expression before "const"
../configmanager.cpp:212: error: initializer expression list treated as compound expression
../configmanager.cpp:212: error: expected `,' or `;' before '{' token
../configmanager.cpp:225: error: `double ConfigManager::getGlobalDouble' is not a static member of `class ConfigManager'
../configmanager.cpp:225: error: `lua_State' was not declared in this scope
../configmanager.cpp:225: error: `_L' was not declared in this scope
../configmanager.cpp:225: error: expected primary-expression before "const"
../configmanager.cpp:225: error: expected primary-expression before "const"
../configmanager.cpp:226: error: initializer expression list treated as compound expression
../configmanager.cpp:226: error: expected `,' or `;' before '{' token

make.exe: *** [../configmanager.o] Error 1

Körning avslutad
 
Hi,

Thanks for the tutorial. I have compiled successfully 0.2.5, but i have some error compiling 0.3.5pl
C:\Documents and Settings\User\Escritorio\TheForgottenServer-Source\databaseodbc.cpp In constructor `ODBCResult::ODBCResult(void*)':
351 C:\Documents and Settings\Min\Escritorio\TheForgottenServer-Source\databaseodbc.cpp `res' was not declared in this scope
C:\Documents and Settings\Min\Escritorio\TheForgottenServer-Source\project\Makefile.win [Build Error] [../databaseodbc.o] Error 1

Can you help me with this error? I have spent a few hours reading all posts since beginning.

One more question, im used to compile in visual c++, where in devc++ can check if i want to compile in debug or release mode?

Thanks again
 
26 D:\Dev-Cpp\TFSEs\Makefile.win [Build Error] *** multiple target patterns. Stop.

I did all you do, also i downloaded the link you gave for TFS DevCoo 2.5, with all working, but while compiling gives more than 50 errors.
 
Last edited by a moderator:
I did all you do, also i downloaded the link you gave for TFS DevCoo 2.5, with all working, but while compiling gives more than 50 errors.

Send me the errors through PM and I'll reply back. I won't be so active until Monday because I am on vacations.

Hi,

Thanks for the tutorial. I have compiled successfully 0.2.5, but i have some error compiling 0.3.5pl


Can you help me with this error? I have spent a few hours reading all posts since beginning.

One more question, im used to compile in visual c++, where in devc++ can check if i want to compile in debug or release mode?

Thanks again

Nowhere. There's not such an option on Dev C++
 
My 0.2.5 is crashing every a few hours sometimes, after a couple of days another times. I would debug, but i dont know how. Im trying with other 0.2.5 compiled by others, but the same happens. Anybody knows about problems with this version, or can help me to debug?
 
- Fixed a little typo (but serious) in the tutorial, now it should compile perfectly. -

it doesn't :)
i get this error

C:\Documents and Settings\User\Escritorio\TheForgottenServer-Source\databaseodbc.cpp In constructor `ODBCResult::ODBCResult(void*)':
351 C:\Documents and Settings\Min\Escritorio\TheForgottenServer-Source\databaseodbc.cpp `res' was not declared in this scope
C:\Documents and Settings\Min\Escritorio\TheForgottenServer-Source\project\Makefile.win [Build Error] [../databaseodbc.o] Error 1
 
Back
Top