• 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!

[HELP] Compiling the last revision...

Phantom EvE

New Member
Joined
Aug 3, 2008
Messages
1
Reaction score
0
Hello, today I was trying to compile TFS but I'm getting an error...

This is the compiler log file:

..........................
_________________________________________________________________

Edit: Ok, I was downloading the 0.3 version =/

So, I went to the tags folder and download the 0.2 version...
But when I can't compile...

Here is the log...

Code:
 Compilador: Default compiler
Building Makefile: "C:\Documents and Settings\Vin�*cius Ávila\Desktop\Forgotten Server\Makefile.win"
Executando  make...
make.exe -f "C:\Documents and Settings\Vin�*cius Ávila\Desktop\Forgotten Server\Makefile.win" all
gcc.exe -c actions.cpp -o actions.o -I"include"  -I"D:/Programas/OT/Dev-Cpp/include"   

In file included from item.h:26,
                 from map.h:33,
                 from creature.h:27,
                 from player.h:25,
                 from actions.cpp:24:
items.h: In member function `bool ItemType::isRune() const':
items.h:160: error: `ITEM_GROUP_RUNE' was not declared in this scope

In file included from luascript.h:37,
                 from creatureevent.h:24,
                 from creature.h:33,
                 from player.h:25,
                 from actions.cpp:24:
database.h: At global scope:
database.h:65: error: `DATABASE_CLASS' does not name a type
database.h:66: error: `DBRES_CLASS' does not name a type
database.h:85: error: ISO C++ forbids declaration of `Database' with no type
database.h:85: error: expected `;' before '*' token

database.h:140: error: ISO C++ forbids declaration of `DBResult' with no type
database.h:140: error: expected `;' before '*' token
database.h:150: error: expected `;' before "std"

database.h:167: error: `DBResult' has not been declared
database.h:167: error: ISO C++ forbids declaration of `res' with no type
database.h:173: error: ISO C++ forbids declaration of `DBResult' with no type
database.h:173: error: expected `;' before '*' token
database.h:178: error: ISO C++ forbids declaration of `Database' with no type
database.h:178: error: expected `;' before '*' token

database.h:250: error: expected `)' before '*' token

database.h:279: error: ISO C++ forbids declaration of `Database' with no type
database.h:279: error: expected `;' before '*' token

database.h:302: error: expected `)' before '*' token
database.h:339: error: ISO C++ forbids declaration of `Database' with no type
database.h:339: error: expected `;' before '*' token
database.h: In destructor `DBTransaction::~DBTransaction()':
database.h:311: error: `m_database' was not declared in this scope

database.h: In member function `bool DBTransaction::begin()':
database.h:318: error: `m_database' was not declared in this scope
database.h: In member function `bool DBTransaction::commit()':
database.h:325: error: `m_database' was not declared in this scope

In file included from creatureevent.h:24,
                 from creature.h:33,
                 from player.h:25,
                 from actions.cpp:24:
luascript.h: At global scope:
luascript.h:123: error: `DBResult' has not been declared
luascript.h:123: error: ISO C++ forbids declaration of `res' with no type

luascript.h:125: error: ISO C++ forbids declaration of `DBResult' with no type

luascript.h:125: error: expected `;' before '*' token
luascript.h:199: error: `DBResult' was not declared in this scope
luascript.h:199: error: template argument 2 is invalid
luascript.h:199: error: template argument 4 is invalid
luascript.h:199: error: ISO C++ forbids declaration of `DBResMap' with no type

In file included from actions.cpp:24:
player.h:186: error: `PlayerCustomFlags' has not been declared
player.h:186: error: ISO C++ forbids declaration of `value' with no type

player.h:301: error: `lossTypes_t' has not been declared
player.h:301: error: ISO C++ forbids declaration of `lossType' with no type

player.h:302: error: `lossTypes_t' has not been declared
player.h:302: error: ISO C++ forbids declaration of `lossType' with no type

player.h:435: error: `PartyShields_t' does not name a type
player.h:799: error: `LOSS_LAST' was not declared in this scope

player.h:863: error: `lossTypes_t' has not been declared
player.h:863: error: ISO C++ forbids declaration of `lossType' with no type

player.h: In member function `uint32_t Player::getStaminaMinutes() const':
player.h:248: error: `PlayerCustomFlag_HasInfiniteStamina' was not declared in this scope

player.h: In member function `uint32_t Player::getLossPercent(int) const':
player.h:301: error: `lossPercent' was not declared in this scope

player.h: In member function `void Player::setLossPercent(int, uint32_t)':
player.h:302: error: `lossPercent' was not declared in this scope

player.h: In member function `virtual uint64_t Player::getLostExperience()':
player.h:864: error: `LOSS_EXPERIENCE' was not declared in this scope

In file included from game.h:37,
                 from actions.cpp:27:
iologindata.h: At global scope:
iologindata.h:86: error: `Database' has not been declared
iologindata.h:86: error: ISO C++ forbids declaration of `mysql' with no type

iologindata.h:99: error: `DBResult' has not been declared
iologindata.h:99: error: ISO C++ forbids declaration of `result' with no type
iologindata.h:100: error: `DBSplitInsert' has not been declared
iologindata.h:100: error: ISO C++ forbids declaration of `query_insert' with no type

actions.cpp: In member function `ReturnValue Actions::canUse(const Player*, const Position&, const Item*)':
actions.cpp:152: error: `ACTION_UNIQUEID' was not declared in this scope

actions.cpp:162: error: `ACTION_ACTIONID' was not declared in this scope
actions.cpp:172: error: `ACTION_ITEMID' was not declared in this scope
actions.cpp:182: error: `ACTION_RUNEID' was not declared in this scope

actions.cpp: At global scope:
actions.cpp:215: error: `ActionType_t' has not been declared
actions.cpp:216: error: ISO C++ forbids declaration of `type' with no type
actions.cpp:216: error: prototype for `Action* Actions::getAction(const Item*, int)' does not match any in class `Actions'
actions.h:70: error: candidate is: Action* Actions::getAction(const Item*)
actions.cpp: In member function `Action* Actions::getAction(const Item*, int)':
actions.cpp:217: error: `ACTION_ANY' was not declared in this scope
actions.cpp:217: error: `ACTION_UNIQUEID' was not declared in this scope
actions.cpp:224: error: `ACTION_ANY' was not declared in this scope
actions.cpp:224: error: `ACTION_ACTIONID' was not declared in this scope

actions.cpp:231: error: `ACTION_ANY' was not declared in this scope
actions.cpp:231: error: `ACTION_ITEMID' was not declared in this scope
actions.cpp:238: error: `ACTION_ANY' was not declared in this scope
actions.cpp:238: error: `ACTION_RUNEID' was not declared in this scope

actions.cpp: At global scope:
actions.cpp:251: error: no `bool Actions::executeUse(Action*, Player*, Item*, const PositionEx&, uint32_t)' member function declared in class `Actions'

actions.cpp: In member function `ReturnValue Actions::internalUseItem(Player*, const Position&, uint8_t, Item*, uint32_t)':
actions.cpp:282: error: `ACTION_UNIQUEID' was not declared in this scope
actions.cpp:288: error: `executeUse' was not declared in this scope
actions.cpp:298: error: `ACTION_ACTIONID' was not declared in this scope
actions.cpp:304: error: `executeUse' was not declared in this scope

actions.cpp:314: error: `ACTION_ITEMID' was not declared in this scope
actions.cpp:320: error: `executeUse' was not declared in this scope
actions.cpp:330: error: `ACTION_RUNEID' was not declared in this scope
actions.cpp:336: error: `executeUse' was not declared in this scope

actions.cpp: At global scope:
actions.cpp:410: error: no `bool Actions::executeUseEx(Action*, Player*, Item*, const PositionEx&, const PositionEx&, bool, uint32_t)' member function declared in class `Actions'

actions.cpp:424: error: no `ReturnValue Actions::internalUseItemEx(Player*, const PositionEx&, const PositionEx&, Item*, bool, uint32_t)' member function declared in class `Actions'
actions.cpp: In member function `ReturnValue Actions::internalUseItemEx(Player*, const PositionEx&, const PositionEx&, Item*, bool, uint32_t)':
actions.cpp:425: error: `ACTION_UNIQUEID' was not declared in this scope
actions.cpp:433: error: `executeUseEx' was not declared in this scope
actions.cpp:437: error: `ACTION_ACTIONID' was not declared in this scope
actions.cpp:445: error: `executeUseEx' was not declared in this scope
actions.cpp:449: error: `ACTION_ITEMID' was not declared in this scope
actions.cpp:457: error: `executeUseEx' was not declared in this scope
actions.cpp:461: error: `ACTION_RUNEID' was not declared in this scope
actions.cpp:469: error: `executeUseEx' was not declared in this scope
actions.cpp: In member function `bool Actions::useItemEx(Player*, const Position&, const Position&, uint8_t, Item*, bool, uint32_t)':
actions.cpp:508: error: `internalUseItemEx' was not declared in this scope

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

Execução terminada
 
Last edited:
Back
Top