• 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

Tutorial updated again


thanks to Jonern

when you say it, what do you mean? i see the tutorial and i don't see changes xD, and well, my problem was that i put the sql updater xD, but now i got this errors:
Code:
  [Resource error] can't open icon file `TheForgottenServer.ico': No such file or directory 
 C:\Documents and Settings\Administrador\Escritorio\forgotten source\Project\Makefile.win [Build Error]  [TibiaMochis_private.res] Error 1
 
when you say it, what do you mean? i see the tutorial and i don't see changes xD, and well, my problem was that i put the sql updater xD, but now i got this errors:
Code:
  [Resource error] can't open icon file `TheForgottenServer.ico': No such file or directory 
 C:\Documents and Settings\Administrador\Escritorio\forgotten source\Project\Makefile.win [Build Error]  [TibiaMochis_private.res] Error 1

Make sure you have TheForgottenServer.ico to the same directory where you .dev project is saved
i put console project :blink:


try undefining -D_CONSOLE_
 
Last edited:
wow cool, now i have compiled only with a little problem, and after of compile what? XD
dibujoya4.png

image text: push a key to continue! OMG
 
i am trying to compile the same as the forgotten server a windows application =P
 
thanks it worked and helped a lot
now i only need to follow your MySQL step up tutorial
 
In file included from databasepgsql.cpp:24:
databasepgsql.h:28:33: postgresql/libpq-fe.h: No such file or directory
In file included from databasepgsql.cpp:24:
databasepgsql.h:53: error: ISO C++ forbids declaration of `PGconn' with no type
databasepgsql.h:53: error: expected `;' before '*' token
databasepgsql.h:71: error: expected `)' before '*' token
databasepgsql.h:75: error: ISO C++ forbids declaration of `PGresult' with no type
databasepgsql.h:75: error: expected `;' before '*' token

databasepgsql.cpp: In constructor `DatabasePgSQL::DatabasePgSQL()':
databasepgsql.cpp:37: error: `m_handle' undeclared (first use this function)
databasepgsql.cpp:37: error: (Each undeclared identifier is reported only once for each function it appears in.)
databasepgsql.cpp:37: error: `PQconnectdb' undeclared (first use this function)
databasepgsql.cpp:38: error: `PQstatus' undeclared (first use this function)
databasepgsql.cpp:38: error: `CONNECTION_OK' undeclared (first use this function)
databasepgsql.cpp:41: error: `PQerrorMessage' undeclared (first use this function)

databasepgsql.cpp: In destructor `virtual DatabasePgSQL::~DatabasePgSQL()':
databasepgsql.cpp:46: error: `m_handle' undeclared (first use this function)
databasepgsql.cpp:46: error: `PQfinish' undeclared (first use this function)

databasepgsql.cpp: In member function `virtual bool DatabasePgSQL::executeQuery(const std::string&)':
databasepgsql.cpp:86: error: `PGresult' undeclared (first use this function)
databasepgsql.cpp:86: error: `res' undeclared (first use this function)
databasepgsql.cpp:86: error: `m_handle' undeclared (first use this function)
databasepgsql.cpp:86: error: `PQexec' undeclared (first use this function)
databasepgsql.cpp:87: error: `ExecStatusType' undeclared (first use this function)
databasepgsql.cpp:87: error: expected `;' before "stat"
databasepgsql.cpp:89: error: expected primary-expression before '!=' token
databasepgsql.cpp:89: error: `PGRES_COMMAND_OK' undeclared (first use this function)
databasepgsql.cpp:89: error: expected primary-expression before '!=' token
databasepgsql.cpp:89: error: `PGRES_TUPLES_OK' undeclared (first use this function)

databasepgsql.cpp:90: error: `PQresultErrorMessage' undeclared (first use this function)
databasepgsql.cpp:91: error: `PQclear' undeclared (first use this function)
databasepgsql.cpp: In member function `virtual DBResult* DatabasePgSQL::storeQuery(const std::string&)':
databasepgsql.cpp:110: error: `PGresult' undeclared (first use this function)

databasepgsql.cpp:110: error: `res' undeclared (first use this function)
databasepgsql.cpp:110: error: `m_handle' undeclared (first use this function)
databasepgsql.cpp:110: error: `PQexec' undeclared (first use this function)
databasepgsql.cpp:111: error: `ExecStatusType' undeclared (first use this function)
databasepgsql.cpp:111: error: expected `;' before "stat"
databasepgsql.cpp:113: error: expected primary-expression before '!=' token
databasepgsql.cpp:113: error: `PGRES_COMMAND_OK' undeclared (first use this function)
databasepgsql.cpp:113: error: expected primary-expression before '!=' token
databasepgsql.cpp:113: error: `PGRES_TUPLES_OK' undeclared (first use this function)
databasepgsql.cpp:114: error: `PQresultErrorMessage' undeclared (first use this function)
databasepgsql.cpp:115: error: `PQclear' undeclared (first use this function)
databasepgsql.cpp: In member function `virtual std::string DatabasePgSQL::escapeString(const std::string&)':
databasepgsql.cpp:135: error: `m_handle' undeclared (first use this function)
databasepgsql.cpp:135: error: `PQescapeStringConn' undeclared (first use this function)
databasepgsql.cpp: In member function `virtual std::string DatabasePgSQL::escapeBlob(const char*, uint32_t)':
databasepgsql.cpp:151: error: `m_handle' undeclared (first use this function)
databasepgsql.cpp:151: error: `PQescapeByteaConn' undeclared (first use this function)
databasepgsql.cpp:155: error: `PQfreemem' undeclared (first use this function)

databasepgsql.cpp: In member function `virtual int32_t PgSQLResult::getDataInt(const std::string&)':
databasepgsql.cpp:193: error: `m_handle' undeclared (first use this function)
databasepgsql.cpp:193: error: `PQfnumber' undeclared (first use this function)
databasepgsql.cpp:193: error: `PQgetvalue' undeclared (first use this function)
databasepgsql.cpp: In member function `virtual int64_t PgSQLResult::getDataLong(const std::string&)':
databasepgsql.cpp:198: error: `m_handle' undeclared (first use this function)
databasepgsql.cpp:198: error: `PQfnumber' undeclared (first use this function)
databasepgsql.cpp:198: error: `PQgetvalue' undeclared (first use this function)
databasepgsql.cpp: In member function `virtual std::string PgSQLResult::getDataString(const std::string&)':
databasepgsql.cpp:203: error: `m_handle' undeclared (first use this function)
databasepgsql.cpp:203: error: `PQfnumber' undeclared (first use this function)
databasepgsql.cpp:203: error: `PQgetvalue' undeclared (first use this function)
databasepgsql.cpp: In member function `virtual const char* PgSQLResult::getDataStream(const std::string&, long unsigned int&)':
databasepgsql.cpp:208: error: `m_handle' undeclared (first use this function)
databasepgsql.cpp:208: error: `PQfnumber' undeclared (first use this function)
databasepgsql.cpp:208: error: `PQgetvalue' undeclared (first use this function)
databasepgsql.cpp:209: error: `PQunescapeBytea' undeclared (first use this function)
databasepgsql.cpp:212: error: `PQfreemem' undeclared (first use this function)
databasepgsql.cpp: At global scope:
databasepgsql.cpp:225: error: expected `)' before '*' token
databasepgsql.cpp:225: error: expected `,' or `;' before '*' token
databasepgsql.cpp: In destructor `virtual PgSQLResult::~PgSQLResult()':

databasepgsql.cpp:234: error: `m_handle' undeclared (first use this function)
databasepgsql.cpp:234: error: `PQclear' undeclared (first use this function)

make.exe: *** [databasepgsql.o] Error 1

Execution terminated


How can i fix this please help me out.... I thought i followed the tutorial exactly but apparently im missing something
 
Anyone compiled 438 Revision of TFS?

Without include and lib directories compile process has stopped on the 2nd file ;D

Within the dirs, stopped on databasemysql.cpp :)
 
Already compiled.

On first site should be written:
If u use Talaturen`s DevCpp, you have to paste it only to C:\ directory, or you will not compile through tutorial without filling lib and inculde directory patches ;]
 
How do i make it on console instead of wingui???

And what do i put on the Directories parameter???
 
Back
Top