• 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 TFS Sources errors

Status
Not open for further replies.

Xampy

PHP | SQL | LUA | C++
Joined
Jun 22, 2008
Messages
1,109
Reaction score
17
Hello!

Well, I was trying to compile the las sources of TFS and with the Dev-C++ of TFS, and when I tried to compile, the program showed these errors:

Compilador: Default compiler
Building Makefile: "C:\Documents and Settings\Administrador\Escritorio\Sources TFS\forgottenserver\trunk\Kupper Project\Makefile.win"
Ejecutando make...
make.exe -f "C:\Documents and Settings\Administrador\Escritorio\Sources TFS\forgottenserver\trunk\Kupper Project\Makefile.win" all
g++.exe -c ../weapons.cpp -o ../weapons.o -I"C:/Dev-Cpp/include" -D__NO_HOMEDIR_CONF__ -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__

In file included from ../otpch.h:10,
from ../weapons.cpp:20:

../definitions.h:30:23: exception.h: No such file or directory

../weapons.cpp:23:21: weapons.h: No such file or directory
In file included from ../weapons.cpp:24:
../combat.h:24:19: thing.h: No such file or directory
In file included from ../map.h:33,
from ../combat.h:28,
from ../weapons.cpp:24:
../item.h:268: error: expected class-name before ',' token

In file included from ../tile.h:26,
from ../map.h:38,
from ../combat.h:28,

from ../weapons.cpp:24:
../cylinder.h:51: error: expected class-name before '{' token
../cylinder.h:63: error: `ReturnValue' does not name a type
../cylinder.h:76: error: `ReturnValue' does not name a type
../cylinder.h:85: error: `ReturnValue' does not name a type

../cylinder.h:97: error: expected `,' or `...' before '*' token
../cylinder.h:98: error: ISO C++ forbids declaration of `Thing' with no type
../cylinder.h:104: error: `Thing' has not been declared
../cylinder.h:104: error: ISO C++ forbids declaration of `thing' with no type
../cylinder.h:111: error: `Thing' has not been declared

../cylinder.h:111: error: ISO C++ forbids declaration of `thing' with no type
../cylinder.h:119: error: `Thing' has not been declared
../cylinder.h:119: error: ISO C++ forbids declaration of `thing' with no type
../cylinder.h:126: error: `Thing' has not been declared

../cylinder.h:126: error: ISO C++ forbids declaration of `thing' with no type
../cylinder.h:133: error: `Thing' has not been declared
../cylinder.h:133: error: ISO C++ forbids declaration of `thing' with no type
../cylinder.h:141: error: `Thing' has not been declared

../cylinder.h:141: error: ISO C++ forbids declaration of `thing' with no type
../cylinder.h:150: error: `Thing' has not been declared
../cylinder.h:150: error: ISO C++ forbids declaration of `thing' with no type
../cylinder.h:157: error: expected `,' or `...' before '*' token
../cylinder.h:157: error: ISO C++ forbids declaration of `Thing' with no type
../cylinder.h:175: error: ISO C++ forbids declaration of `Thing' with no type
../cylinder.h:175: error: `Thing' declared as a `virtual' field
../cylinder.h:175: error: expected `;' before '*' token
../cylinder.h:190: error: `Thing' has not been declared
../cylinder.h:190: error: ISO C++ forbids declaration of `thing' with no type
../cylinder.h:197: error: `Thing' has not been declared
../cylinder.h:197: error: ISO C++ forbids declaration of `thing' with no type
../cylinder.h:207: error: `ReturnValue' does not name a type
../cylinder.h:209: error: `ReturnValue' does not name a type
../cylinder.h:211: error: `ReturnValue' does not name a type
../cylinder.h:212: error: expected `,' or `...' before '*' token
../cylinder.h:213: error: ISO C++ forbids declaration of `Thing' with no type
../cylinder.h:215: error: `Thing' has not been declared
../cylinder.h:215: error: ISO C++ forbids declaration of `thing' with no type
../cylinder.h:216: error: `Thing' has not been declared
../cylinder.h:216: error: ISO C++ forbids declaration of `thing' with no type
../cylinder.h:217: error: `Thing' has not been declared
../cylinder.h:217: error: ISO C++ forbids declaration of `thing' with no type
../cylinder.h:218: error: `Thing' has not been declared
../cylinder.h:218: error: ISO C++ forbids declaration of `thing' with no type
../cylinder.h:219: error: `Thing' has not been declared
../cylinder.h:219: error: ISO C++ forbids declaration of `thing' with no type
../cylinder.h:221: error: `Thing' has not been declared
../cylinder.h:221: error: ISO C++ forbids declaration of `thing' with no type
../cylinder.h:222: error: `Thing' has not been declared
../cylinder.h:223: error: ISO C++ forbids declaration of `thing' with no type
In file included from ../map.h:38,
from ../combat.h:28,
from ../weapons.cpp:24:
../tile.h:119: error: ISO C++ forbids declaration of `Thing' with no type
../tile.h:119: error: expected `;' before '*' token
../tile.h:162: error: `ReturnValue' does not name a type
../tile.h:164: error: `ReturnValue' does not name a type
../tile.h:166: error: `ReturnValue' does not name a type
../tile.h:167: error: expected `,' or `...' before '*' token
../tile.h:168: error: ISO C++ forbids declaration of `Thing' with no type

../tile.h:170: error: `Thing' has not been declared
../tile.h:170: error: ISO C++ forbids declaration of `thing' with no type

../tile.h:171: error: `Thing' has not been declared
../tile.h:171: error: ISO C++ forbids declaration of `thing' with no type

../tile.h:173: error: `Thing' has not been declared
../tile.h:173: error: ISO C++ forbids declaration of `thing' with no type

../tile.h:174: error: `Thing' has not been declared
../tile.h:174: error: ISO C++ forbids declaration of `thing' with no type

../tile.h:176: error: `Thing' has not been declared
../tile.h:176: error: ISO C++ forbids declaration of `thing' with no type

../tile.h:178: error: expected `,' or `...' before '*' token
../tile.h:178: error: ISO C++ forbids declaration of `Thing' with no type
../tile.h:182: error: ISO C++ forbids declaration of `Thing' with no type
../tile.h:182: error: `Thing' declared as a `virtual' field
../tile.h:182: error: expected `;' before '*' token
../tile.h:184: error: `Thing' has not been declared
../tile.h:184: error: ISO C++ forbids declaration of `thing' with no type
../tile.h:185: error: `Thing' has not been declared
../tile.h:185: error: ISO C++ forbids declaration of `thing' with no type
../tile.h:187: error: `Thing' has not been declared
../tile.h:187: error: ISO C++ forbids declaration of `thing' with no type
../tile.h:188: error: `Thing' has not been declared
../tile.h:188: error: ISO C++ forbids declaration of `thing' with no type

In file included from ../weapons.cpp:24:
../combat.h:192: error: `ReturnValue' does not name a type

../combat.h:287: error: `ReturnValue' does not name a type
../combat.h:288: error: `ReturnValue' does not name a type
../combat.h:289: error: `ReturnValue' does not name a type

../weapons.cpp:32: error: `Vocations' does not name a type

../weapons.cpp:34: error: expected initializer before '*' token
../weapons.cpp:36: error: `Weapons' has not been declared
../weapons.cpp:36: error: ISO C++ forbids declaration of `Weapons' with no type
../weapons.cpp: In function `int Weapons()':
../weapons.cpp:36: error: only constructors take base initializers
../weapons.cpp:39: error: `m_scriptInterface' was not declared in this scope
../weapons.cpp: At global scope:
../weapons.cpp:42: error: expected constructor, destructor, or type conversion before '::' token
../weapons.cpp:47: error: expected initializer before '*' token
../weapons.cpp:59: error: `Weapons' is not a class or namespace
../weapons.cpp: In function `void clear()':

../weapons.cpp:61: error: `WeaponMap' has not been declared
../weapons.cpp:61: error: `iterator' was not declared in this scope
../weapons.cpp:61: error: expected `;' before "it"
../weapons.cpp:62: error: `it' was not declared in this scope
../weapons.cpp:62: error: `weapons' was not declared in this scope
../weapons.cpp: At global scope:
../weapons.cpp:68: error: `Weapons' is not a class or namespace
../weapons.cpp: In function `LuaScriptInterface& getScriptInterface()':
../weapons.cpp:70: error: `m_scriptInterface' was not declared in this scope
../weapons.cpp: At global scope:
../weapons.cpp:73: error: `Weapons' is not a class or namespace
../weapons.cpp:78: error: `Weapons' is not a class or namespace
../weapons.cpp: In function `bool loadDefaults()':
../weapons.cpp:84: error: `weapons' was not declared in this scope
../weapons.cpp:96: error: `WeaponMelee' was not declared in this scope
../weapons.cpp:96: error: `weapon' was not declared in this scope
../weapons.cpp:96: error: `WeaponMelee' is not a type
../weapons.cpp:96: error: `m_scriptInterface' was not declared in this scope
../weapons.cpp:98: error: `weapons' was not declared in this scope
../weapons.cpp:108: error: `WeaponDistance' was not declared in this scope
../weapons.cpp:108: error: `weapon' was not declared in this scope
../weapons.cpp:108: error: `WeaponDistance' is not a type
../weapons.cpp:108: error: `m_scriptInterface' was not declared in this scope
../weapons.cpp:110: error: `weapons' was not declared in this scope
../weapons.cpp: At global scope:
../weapons.cpp:123: error: `Weapons' is not a class or namespace
../weapons.cpp: In function `Event* getEvent(const std::string&)':
../weapons.cpp:127: error: `WeaponMelee' has not been declared
../weapons.cpp:127: error: `m_scriptInterface' was not declared in this scope
../weapons.cpp:129: error: `WeaponDistance' has not been declared
../weapons.cpp:129: error: `m_scriptInterface' was not declared in this scope
../weapons.cpp:131: error: `WeaponWand' has not been declared
../weapons.cpp:131: error: `m_scriptInterface' was not declared in this scope
../weapons.cpp: At global scope:
../weapons.cpp:136: error: `Weapons' is not a class or namespace
../weapons.cpp: In function `bool registerEvent(Event*, xmlNode*)':
../weapons.cpp:138: error: `Weapon' was not declared in this scope
../weapons.cpp:138: error: `weapon' was not declared in this scope
../weapons.cpp:138: error: `Weapon' is not a type
../weapons.cpp:138: error: expected `>' before '*' token
../weapons.cpp:138: error: expected `(' before '*' token
../weapons.cpp:138: error: expected primary-expression before '>' token
../weapons.cpp:138: error: expected `)' before ';' token
../weapons.cpp:140: error: `weapons' was not declared in this scope
../weapons.cpp: At global scope:
../weapons.cpp:147: error: `Weapons' is not a class or namespace
../weapons.cpp:153: error: `Weapons' is not a class or namespace

../weapons.cpp:158: error: `Weapon' has not been declared
../weapons.cpp:158: error: ISO C++ forbids declaration of `Weapon' with no type
../weapons.cpp: In function `int Weapon(LuaScriptInterface*)':
../weapons.cpp:158: error: only constructors take base initializers
../weapons.cpp:161: error: `m_scripted' was not declared in this scope
../weapons.cpp:162: error: `id' was not declared in this scope
../weapons.cpp:163: error: `level' was not declared in this scope
../weapons.cpp:164: error: `magLevel' was not declared in this scope
../weapons.cpp:165: error: `mana' was not declared in this scope
../weapons.cpp:166: error: `manaPercent' was not declared in this scope
../weapons.cpp:167: error: `soul' was not declared in this scope
../weapons.cpp:168: error: `exhaustion' was not declared in this scope
../weapons.cpp:169: error: `premium' was not declared in this scope
../weapons.cpp:170: error: `enabled' was not declared in this scope
../weapons.cpp:171: error: `wieldUnproperly' was not declared in this scope
../weapons.cpp:172: error: `range' was not declared in this scope
../weapons.cpp:173: error: `ammoAction' was not declared in this scope
../weapons.cpp:174: error: `params' was not declared in this scope
../weapons.cpp: At global scope:
../weapons.cpp:179: error: expected constructor, destructor, or type conversion before '::' token
../weapons.cpp:184: error: `Weapon' is not a class or namespace
../weapons.cpp: In function `void setCombatParam(const CombatParams&)':
../weapons.cpp:186: error: `m_scripted' was not declared in this scope
../weapons.cpp:187: error: `params' was not declared in this scope
../weapons.cpp: At global scope:
../weapons.cpp:190: error: `Weapon' is not a class or namespace
../weapons.cpp: In function `bool configureEvent(xmlNode*)':
../weapons.cpp:196: error: `id' was not declared in this scope
../weapons.cpp:205: error: `level' was not declared in this scope
../weapons.cpp:212: error: `magLevel' was not declared in this scope

../weapons.cpp:218: error: `mana' was not declared in this scope
../weapons.cpp:221: error: `manaPercent' was not declared in this scope
../weapons.cpp:224: error: `soul' was not declared in this scope
../weapons.cpp:227: error: `exhaustion' was not declared in this scope
../weapons.cpp:231: error: `premium' was not declared in this scope
../weapons.cpp:237: error: `enabled' was not declared in this scope
../weapons.cpp:240: error: `wieldUnproperly' was not declared in this scope
../weapons.cpp:243: error: `params' was not declared in this scope

../weapons.cpp:248: error: `range' was not declared in this scope
../weapons.cpp:248: error: `id' was not declared in this scope

../weapons.cpp:259: error: `g_vocations' was not declared in this scope

../weapons.cpp:262: error: `vocWeaponMap' was not declared in this scope
../weapons.cpp:303: error: `getReqLevel' was not declared in this scope
../weapons.cpp:304: error: `getReqMagLv' was not declared in this scope
../weapons.cpp:308: error: `getID' was not declared in this scope
../weapons.cpp:308: error: `configureWeapon' was not declared in this scope

../weapons.cpp: At global scope:
../weapons.cpp:314: error: `Weapon' is not a class or namespace
../weapons.cpp: In function `bool loadFunction(const std::string&)':
../weapons.cpp:319: error: `getID' was not declared in this scope
../weapons.cpp:319: error: `configureWeapon' was not declared in this scope
../weapons.cpp: At global scope:
../weapons.cpp:325: error: `Weapon' is not a class or namespace
../weapons.cpp: In function `bool configureWeapon(const ItemType&)':
../weapons.cpp:327: error: `id' was not declared in this scope
../weapons.cpp: At global scope:
../weapons.cpp:331: error: `Weapon' is not a class or namespace
../weapons.cpp:336: error: `Weapon' is not a class or namespace
../weapons.cpp:337: error: non-member function `int32_t playerWeaponCheck(Player*, Creature*)' cannot have `const' method qualifier
../weapons.cpp: In function `int32_t playerWeaponCheck(Player*, Creature*)':
../weapons.cpp:338: error: invalid use of undefined type `struct Player'
../condition.h:33: error: forward declaration of `struct Player'
../weapons.cpp:339: error: invalid use of undefined type `struct Creature'
../condition.h:32: error: forward declaration of `struct Creature'
../weapons.cpp:345: error: `getID' was not declared in this scope
../weapons.cpp:347: error: invalid use of undefined type `struct Player'
../condition.h:33: error: forward declaration of `struct Player'
../weapons.cpp:349: error: `range' was not declared in this scope
../weapons.cpp:354: error: invalid use of undefined type `struct Player'
../condition.h:33: error: forward declaration of `struct Player'
../weapons.cpp:356: error: `enabled' was not declared in this scope
../weapons.cpp:359: error: invalid use of undefined type `struct Player'
../condition.h:33: error: forward declaration of `struct Player'
../weapons.cpp:359: error: `getManaCost' was not declared in this scope
../weapons.cpp:362: error: invalid use of undefined type `struct Player'
../condition.h:33: error: forward declaration of `struct Player'
../weapons.cpp:362: error: `PLAYERINFO_SOUL' was not declared in this scope
../weapons.cpp:362: error: `soul' was not declared in this scope
../weapons.cpp:365: error: `isPremium' was not declared in this scope
../weapons.cpp:365: error: invalid use of undefined type `struct Player'
../condition.h:33: error: forward declaration of `struct Player'
../weapons.cpp:368: error: `vocWeaponMap' was not declared in this scope
../weapons.cpp:370: error: invalid use of undefined type `struct Player'
../condition.h:33: error: forward declaration of `struct Player'
../weapons.cpp:375: error: invalid use of undefined type `struct Player'
../condition.h:33: error: forward declaration of `struct Player'
../weapons.cpp:375: error: `getReqLevel' was not declared in this scope
../weapons.cpp:376: error: `isWieldedUnproperly' was not declared in this scope
../weapons.cpp:377: error: invalid use of undefined type `struct Player'
../condition.h:33: error: forward declaration of `struct Player'
../weapons.cpp:377: error: `getReqMagLv' was not declared in this scope
../weapons.cpp:378: error: `isWieldedUnproperly' was not declared in this scope
../weapons.cpp: At global scope:
../weapons.cpp:386: error: `Weapon' is not a class or namespace

../weapons.cpp:387: error: non-member function `bool useWeapon(Player*, Item*, Creature*)' cannot have `const' method qualifier
../weapons.cpp: In function `bool useWeapon(Player*, Item*, Creature*)':
../weapons.cpp:392: error: `internalUseWeapon' was not declared in this scope
../weapons.cpp: At global scope:
../weapons.cpp:395: error: `Weapon' is not a class or namespace
../weapons.cpp: In function `bool useFist(Player*, Creature*)':
../weapons.cpp:397: error: invalid use of undefined type `struct Player'
../condition.h:33: error: forward declaration of `struct Player'
../weapons.cpp:398: error: invalid use of undefined type `struct Creature'
../condition.h:32: error: forward declaration of `struct Creature'
../weapons.cpp:401: error: invalid use of undefined type `struct Player'
../condition.h:33: error: forward declaration of `struct Player'
../weapons.cpp:402: error: invalid use of undefined type `struct Player'

../condition.h:33: error: forward declaration of `struct Player'
../weapons.cpp:402: error: `SKILL_LEVEL' was not declared in this scope
../weapons.cpp:405: error: `Weapons' is not a class or namespace
../weapons.cpp:409: error: invalid use of undefined type `struct Player'
../condition.h:33: error: forward declaration of `struct Player'
../weapons.cpp:418: error: no matching function for call to `Combat::doCombatHealth(Player*&, Creature*&, int32_t&, int32_t&, CombatParams&)'
../combat.h:260: note: candidates are: static void Combat::doCombatHealth(Creature*, Creature*, int32_t, int32_t, const CombatParams&)

../combat.h:262: note: static void Combat::doCombatHealth(Creature*, const Position&, const AreaCombat*, int32_t, int32_t, const CombatParams&)
../weapons.cpp:419: error: invalid use of undefined type `struct Player'
../condition.h:33: error: forward declaration of `struct Player'
../weapons.cpp:419: error: invalid use of undefined type `struct Player'
../condition.h:33: error: forward declaration of `struct Player'
../weapons.cpp:420: error: invalid use of undefined type `struct Player'
../condition.h:33: error: forward declaration of `struct Player'
../weapons.cpp: At global scope:
../weapons.cpp:428: error: `Weapon' is not a class or namespace
../weapons.cpp:429: error: non-member function `bool internalUseWeapon(Player*, Item*, Creature*, int32_t)' cannot have `const' method qualifier
../weapons.cpp: In function `bool internalUseWeapon(Player*, Item*, Creature*, int32_t)':
../weapons.cpp:430: error: `m_scripted' was not declared in this scope
../weapons.cpp:434: error: invalid use of undefined type `struct Creature'
../condition.h:32: error: forward declaration of `struct Creature'
../weapons.cpp:435: error: `executeUseWeapon' was not declared in this scope
../weapons.cpp:439: error: `getWeaponDamage' was not declared in this scope
../weapons.cpp:440: error: `params' was not declared in this scope
../weapons.cpp:443: error: invalid use of undefined type `struct Creature'
../condition.h:32: error: forward declaration of `struct Creature'
../weapons.cpp:443: error: `onUsedAmmo' was not declared in this scope
../weapons.cpp:444: error: invalid use of undefined type `struct Creature'

../condition.h:32: error: forward declaration of `struct Creature'
../weapons.cpp:444: error: `onUsedWeapon' was not declared in this scope
../weapons.cpp: At global scope:

../weapons.cpp:448: error: `Weapon' is not a class or namespace
../weapons.cpp:449: error: non-member function `bool internalUseWeapon(Player*, Item*, Tile*)' cannot have `const' method qualifier
../weapons.cpp: In function `bool internalUseWeapon(Player*, Item*, Tile*)':
../weapons.cpp:450: error: `m_scripted' was not declared in this scope
../weapons.cpp:455: error: `executeUseWeapon' was not declared in this scope
../weapons.cpp:459: error: `params' was not declared in this scope
../weapons.cpp:460: error: invalid use of undefined type `struct Game'
../map.h:42: error: forward declaration of `struct Game'

../weapons.cpp:463: error: `onUsedAmmo' was not declared in this scope
../weapons.cpp:464: error: `onUsedWeapon' was not declared in this scope
../weapons.cpp: At global scope:
../weapons.cpp:468: error: `Weapon' is not a class or namespace
../weapons.cpp:469: error: non-member function `void onUsedWeapon(Player*, Item*, Tile*)' cannot have `const' method qualifier
../weapons.cpp: In function `void onUsedWeapon(Player*, Item*, Tile*)':
../weapons.cpp:470: error: invalid use of undefined type `struct Player'
../condition.h:33: error: forward declaration of `struct Player'
../weapons.cpp:474: error: `getSkillType' was not declared in this scope
../weapons.cpp:475: error: invalid use of undefined type `struct Player'
../condition.h:33: error: forward declaration of `struct Player'

../weapons.cpp:478: error: invalid use of undefined type `struct Player'
../condition.h:33: error: forward declaration of `struct Player'
../weapons.cpp:478: error: `exhaustion' was not declared in this scope
../weapons.cpp:479: error: invalid use of undefined type `struct Player'
../condition.h:33: error: forward declaration of `struct Player'

../weapons.cpp:481: error: `getManaCost' was not declared in this scope
../weapons.cpp:484: error: invalid use of undefined type `struct Player'
../condition.h:33: error: forward declaration of `struct Player'
../weapons.cpp:485: error: invalid use of undefined type `struct Player'
../condition.h:33: error: forward declaration of `struct Player'
../weapons.cpp:488: error: invalid use of undefined type `struct Player'
../condition.h:33: error: forward declaration of `struct Player'
../weapons.cpp:488: error: `soul' was not declared in this scope
../weapons.cpp:489: error: invalid use of undefined type `struct Player'
../condition.h:33: error: forward declaration of `struct Player'
../weapons.cpp: At global scope:
../weapons.cpp:492: error: `Weapon' is not a class or namespace
../weapons.cpp:493: error: non-member function `void onUsedAmmo(Player*, Item*, Tile*)' cannot have `const' method qualifier
../weapons.cpp: In function `void onUsedAmmo(Player*, Item*, Tile*)':
../weapons.cpp:496: error: `ammoAction' was not declared in this scope
../weapons.cpp:499: error: invalid use of undefined type `struct Game'
../map.h:42: error: forward declaration of `struct Game'
../weapons.cpp:504: error: invalid use of undefined type `struct Game'
../map.h:42: error: forward declaration of `struct Game'
../weapons.cpp:507: error: invalid use of undefined type `struct Game'
../map.h:42: error: forward declaration of `struct Game'
../weapons.cpp:507: error: 'class Item' has no member named 'getParent'
../weapons.cpp:514: error: invalid use of undefined type `struct Game'
../map.h:42: error: forward declaration of `struct Game'
../weapons.cpp: At global scope:
../weapons.cpp:519: error: `Weapon' is not a class or namespace
../weapons.cpp:520: error: non-member function `int32_t getManaCost(const Player*)' cannot have `const' method qualifier
../weapons.cpp: In function `int32_t getManaCost(const Player*)':
../weapons.cpp:521: error: `mana' was not declared in this scope
../weapons.cpp:524: error: `manaPercent' was not declared in this scope
../weapons.cpp:526: error: invalid use of undefined type `const struct Player'
../condition.h:33: error: forward declaration of `const struct Player'
../weapons.cpp: At global scope:
../weapons.cpp:533: error: `Weapon' is not a class or namespace
../weapons.cpp:534: error: non-member function `bool executeUseWeapon(Player*, const LuaVariant&)' cannot have `const' method qualifier
../weapons.cpp: In function `bool executeUseWeapon(Player*, const LuaVariant&)':
../weapons.cpp:536: error: `m_scriptInterface' was not declared in this scope
../weapons.cpp:546: error: `m_scriptId' was not declared in this scope
../weapons.cpp:547: error: invalid use of undefined type `struct Player'
../condition.h:33: error: forward declaration of `struct Player'

../weapons.cpp:551: error: no matching function for call to `ScriptEnviroment::addThing(Player*&)'
../luascript.h:119: note: candidates are: uint32_t ScriptEnviroment::addThing(Thing*)
../weapons.cpp: At global scope:
../weapons.cpp:569: error: `WeaponMelee' has not been declared
../weapons.cpp:569: error: ISO C++ forbids declaration of `WeaponMelee' with no type
../weapons.cpp: In function `int WeaponMelee(LuaScriptInterface*)':
../weapons.cpp:569: error: only constructors take base initializers
../weapons.cpp:572: error: `elementType' was not declared in this scope
../weapons.cpp:573: error: `elementDamage' was not declared in this scope
../weapons.cpp: At global scope:
../weapons.cpp:576: error: `WeaponMelee' is not a class or namespace
../weapons.cpp: In function `bool configureEvent(xmlNode*)':
../weapons.cpp:577: error: redefinition of `bool configureEvent(xmlNode*)'
../weapons.cpp:191: error: `bool configureEvent(xmlNode*)' previously defined here
../weapons.cpp:578: error: `Weapon' is not a class or namespace
../weapons.cpp: At global scope:
../weapons.cpp:584: error: `WeaponMelee' is not a class or namespace

../weapons.cpp: In function `bool configureWeapon(const ItemType&)':
../weapons.cpp:585: error: redefinition of `bool configureWeapon(const ItemType&)'
../weapons.cpp:326: error: `bool configureWeapon(const ItemType&)' previously defined here
../weapons.cpp:586: error: `m_scripted' was not declared in this scope
../weapons.cpp:587: error: `elementType' was not declared in this scope
../weapons.cpp:588: error: `elementDamage' was not declared in this scope
../weapons.cpp:589: error: `Weapon' is not a class or namespace
../weapons.cpp: At global scope:
../weapons.cpp:592: error: `WeaponMelee' is not a class or namespace
../weapons.cpp:593: error: non-member function `bool useWeapon(Player*, Item*, Creature*)' cannot have `const' method qualifier
../weapons.cpp: In function `bool useWeapon(Player*, Item*, Creature*)':
../weapons.cpp:593: error: redefinition of `bool useWeapon(Player*, Item*, Creature*)'
../weapons.cpp:387: error: `bool useWeapon(Player*, Item*, Creature*)' previously defined here
../weapons.cpp:594: error: `Weapon' is not a class or namespace
../weapons.cpp:597: error: `elementDamage' was not declared in this scope
../weapons.cpp:597: error: `elementType' was not declared in this scope
../weapons.cpp:599: error: `getElementDamage' was not declared in this scope
../weapons.cpp:603: error: no matching function for call to `Combat::doCombatHealth(Player*&, Creature*&, int32_t&, int32_t&, CombatParams&)'

../combat.h:260: note: candidates are: static void Combat::doCombatHealth(Creature*, Creature*, int32_t, int32_t, const CombatParams&)
../combat.h:262: note: static void Combat::doCombatHealth(Creature*, const Position&, const AreaCombat*, int32_t, int32_t, const CombatParams&)
../weapons.cpp: At global scope:
../weapons.cpp:609: error: `WeaponMelee' is not a class or namespace
../weapons.cpp:610: error: non-member function `void onUsedWeapon(Player*, Item*, Tile*)' cannot have `const' method qualifier
../weapons.cpp: In function `void onUsedWeapon(Player*, Item*, Tile*)':
../weapons.cpp:610: error: redefinition of `void onUsedWeapon(Player*, Item*, Tile*)'
../weapons.cpp:469: error: `void onUsedWeapon(Player*, Item*, Tile*)' previously defined here

../weapons.cpp:611: error: `Weapon' is not a class or namespace
../weapons.cpp: At global scope:
../weapons.cpp:614: error: `WeaponMelee' is not a class or namespace
../weapons.cpp:615: error: non-member function `void onUsedAmmo(Player*, Item*, Tile*)' cannot have `const' method qualifier
../weapons.cpp: In function `void onUsedAmmo(Player*, Item*, Tile*)':
../weapons.cpp:615: error: redefinition of `void onUsedAmmo(Player*, Item*, Tile*)'
../weapons.cpp:493: error: `void onUsedAmmo(Player*, Item*, Tile*)' previously defined here

../weapons.cpp:616: error: `Weapon' is not a class or namespace
../weapons.cpp: At global scope:
../weapons.cpp:619: error: `WeaponMelee' is not a class or namespace
../weapons.cpp:621: error: non-member function `bool getSkillType(const Player*, const Item*, skills_t&, uint32_t&)' cannot have `const' method qualifier
../weapons.cpp: In function `bool getSkillType(const Player*, const Item*, skills_t&, uint32_t&)':
../weapons.cpp:624: error: invalid use of undefined type `const struct Player'
../condition.h:33: error: forward declaration of `const struct Player'

../weapons.cpp:626: error: invalid use of undefined type `const struct Player'

../condition.h:33: error: forward declaration of `const struct Player'
../weapons.cpp: At global scope:
../weapons.cpp:678: error: `WeaponMelee' is not a class or namespace

../weapons.cpp:679: error: non-member function `int32_t getWeaponDamage(const Player*, const Creature*, const Item*, bool)' cannot have `const' method qualifier
../weapons.cpp: In function `int32_t getWeaponDamage(const Player*, const Creature*, const Item*, bool)':
../weapons.cpp:680: error: invalid use of undefined type `const struct Player'
../condition.h:33: error: forward declaration of `const struct Player'
../weapons.cpp:681: error: `elementDamage' was not declared in this scope

../weapons.cpp:682: error: invalid use of undefined type `const struct Player'

../condition.h:33: error: forward declaration of `const struct Player'
../weapons.cpp:684: error: `Weapons' is not a class or namespace
../weapons.cpp:688: error: invalid use of undefined type `const struct Player'
../condition.h:33: error: forward declaration of `const struct Player'
../weapons.cpp:691: error: `Vocation' was not declared in this scope
../weapons.cpp:691: error: `vocation' was not declared in this scope
../weapons.cpp:691: error: invalid use of undefined type `const struct Player'
../condition.h:33: error: forward declaration of `const struct Player'
../weapons.cpp: At global scope:
../weapons.cpp:701: error: `WeaponMelee' is not a class or namespace
../weapons.cpp:702: error: non-member function `int32_t getElementDamage(const Player*, const Item*)' cannot have `const' method qualifier
../weapons.cpp: In function `int32_t getElementDamage(const Player*, const Item*)':
../weapons.cpp:703: error: invalid use of undefined type `const struct Player'
../condition.h:33: error: forward declaration of `const struct Player'
../weapons.cpp:704: error: invalid use of undefined type `const struct Player'
../condition.h:33: error: forward declaration of `const struct Player'
../weapons.cpp:705: error: `Weapons' is not a class or namespace
../weapons.cpp:705: error: `elementDamage' was not declared in this scope
../weapons.cpp:707: error: `Vocation' was not declared in this scope
../weapons.cpp:707: error: `vocation' was not declared in this scope
../weapons.cpp:707: error: invalid use of undefined type `const struct Player'
../condition.h:33: error: forward declaration of `const struct Player'

../weapons.cpp: At global scope:
../weapons.cpp:714: error: `WeaponDistance' has not been declared
../weapons.cpp:714: error: ISO C++ forbids declaration of `WeaponDistance' with no type
../weapons.cpp: In function `int WeaponDistance(LuaScriptInterface*)':
../weapons.cpp:714: error: only constructors take base initializers
../weapons.cpp:717: error: `hitChance' was not declared in this scope
../weapons.cpp:718: error: `maxHitChance' was not declared in this scope
../weapons.cpp:719: error: `breakChance' was not declared in this scope
../weapons.cpp:720: error: `ammuAttackValue' was not declared in this scope
../weapons.cpp:721: error: `params' was not declared in this scope
../weapons.cpp: At global scope:
../weapons.cpp:724: error: `WeaponDistance' is not a class or namespace
../weapons.cpp: In function `bool configureEvent(xmlNode*)':
../weapons.cpp:725: error: redefinition of `bool configureEvent(xmlNode*)'
../weapons.cpp:191: error: `bool configureEvent(xmlNode*)' previously defined here
../weapons.cpp:726: error: `Weapon' is not a class or namespace

../weapons.cpp:729: error: `id' was not declared in this scope

../weapons.cpp:735: error: `maxHitChance' was not declared in this scope
../weapons.cpp:740: error: `maxHitChance' was not declared in this scope
../weapons.cpp:744: error: `hitChance' was not declared in this scope
../weapons.cpp:747: error: `maxHitChance' was not declared in this scope
../weapons.cpp:750: error: `breakChance' was not declared in this scope
../weapons.cpp:753: error: `ammoAction' was not declared in this scope
../weapons.cpp: At global scope:
../weapons.cpp:765: error: `WeaponDistance' is not a class or namespace
../weapons.cpp: In function `bool configureWeapon(const ItemType&)':
../weapons.cpp:766: error: redefinition of `bool configureWeapon(const ItemType&)'
../weapons.cpp:326: error: `bool configureWeapon(const ItemType&)' previously defined here
../weapons.cpp:767: error: `m_scripted' was not declared in this scope
../weapons.cpp:773: error: `maxHitChance' was not declared in this scope
../weapons.cpp:778: error: `maxHitChance' was not declared in this scope
../weapons.cpp:782: error: `hitChance' was not declared in this scope
../weapons.cpp:785: error: `maxHitChance' was not declared in this scope
../weapons.cpp:788: error: `breakChance' was not declared in this scope
../weapons.cpp:791: error: `ammoAction' was not declared in this scope
../weapons.cpp:793: error: `params' was not declared in this scope
../weapons.cpp:794: error: `range' was not declared in this scope
../weapons.cpp:795: error: `ammuAttackValue' was not declared in this scope
../weapons.cpp:797: error: `Weapon' is not a class or namespace
../weapons.cpp: At global scope:
../weapons.cpp:800: error: `WeaponDistance' is not a class or namespace
../weapons.cpp:801: error: non-member function `int32_t playerWeaponCheck(Player*, Creature*)' cannot have `const' method qualifier
../weapons.cpp: In function `int32_t playerWeaponCheck(Player*, Creature*)':
../weapons.cpp:801: error: redefinition of `int32_t playerWeaponCheck(Player*, Creature*)'
../weapons.cpp:337: error: `int32_t playerWeaponCheck(Player*, Creature*)' previously defined here
../weapons.cpp:802: error: `id' was not declared in this scope
../weapons.cpp:805: error: invalid use of undefined type `struct Player'
../condition.h:33: error: forward declaration of `struct Player'
../weapons.cpp:807: error: expected initializer before '*' token
../weapons.cpp:808: error: `boWeap' was not declared in this scope
../weapons.cpp:813: error: `Weapon' is not a class or namespace
../weapons.cpp: At global scope:
../weapons.cpp:816: error: `WeaponDistance' is not a class or namespace
../weapons.cpp:817: error: non-member function `bool useWeapon(Player*, Item*, Creature*)' cannot have `const' method qualifier
../weapons.cpp: In function `bool useWeapon(Player*, Item*, Creature*)':
../weapons.cpp:817: error: redefinition of `bool useWeapon(Player*, Item*, Creature*)'
../weapons.cpp:387: error: `bool useWeapon(Player*, Item*, Creature*)' previously defined here
../weapons.cpp:823: error: `hitChance' was not declared in this scope

../weapons.cpp:826: error: invalid use of undefined type `struct Player'
../condition.h:33: error: forward declaration of `struct Player'
../weapons.cpp:826: error: `SKILL_LEVEL' was not declared in this scope
../weapons.cpp:827: error: invalid use of undefined type `struct Player'
../condition.h:33: error: forward declaration of `struct Player'
../weapons.cpp:828: error: invalid use of undefined type `struct Creature'
../condition.h:32: error: forward declaration of `struct Creature'
../weapons.cpp:831: error: `maxHitChance' was not declared in this scope
../weapons.cpp:931: error: invalid use of undefined type `struct Player'
../condition.h:33: error: forward declaration of `struct Player'
../weapons.cpp:937: error: `Weapon' is not a class or namespace
../weapons.cpp:954: error: invalid use of undefined type `struct Creature'
../condition.h:32: error: forward declaration of `struct Creature'
../weapons.cpp:955: error: invalid use of undefined type `struct Creature'
../condition.h:32: error: forward declaration of `struct Creature'
../weapons.cpp:960: error: invalid use of undefined type `struct Game'

../map.h:42: error: forward declaration of `struct Game'
../weapons.cpp:968: error: `Weapon' is not a class or namespace
../weapons.cpp: At global scope:
../weapons.cpp:974: error: `WeaponDistance' is not a class or namespace
../weapons.cpp:975: error: non-member function `void onUsedWeapon(Player*, Item*, Tile*)' cannot have `const' method qualifier
../weapons.cpp: In function `void onUsedWeapon(Player*, Item*, Tile*)':
../weapons.cpp:975: error: redefinition of `void onUsedWeapon(Player*, Item*, Tile*)'
../weapons.cpp:469: error: `void onUsedWeapon(Player*, Item*, Tile*)' previously defined here
../weapons.cpp:976: error: `Weapon' is not a class or namespace
../weapons.cpp: At global scope:
../weapons.cpp:979: error: `WeaponDistance' is not a class or namespace
../weapons.cpp:980: error: non-member function `void onUsedAmmo(Player*, Item*, Tile*)' cannot have `const' method qualifier
../weapons.cpp: In function `void onUsedAmmo(Player*, Item*, Tile*)':
../weapons.cpp:980: error: redefinition of `void onUsedAmmo(Player*, Item*, Tile*)'
../weapons.cpp:493: error: `void onUsedAmmo(Player*, Item*, Tile*)' previously defined here
../weapons.cpp:981: error: `ammoAction' was not declared in this scope

../weapons.cpp:981: error: `breakChance' was not declared in this scope
../weapons.cpp:984: error: invalid use of undefined type `struct Game'
../map.h:42: error: forward declaration of `struct Game'
../weapons.cpp:987: error: `Weapon' is not a class or namespace
../weapons.cpp: At global scope:
../weapons.cpp:990: error: `WeaponDistance' is not a class or namespace
../weapons.cpp:991: error: non-member function `int32_t getWeaponDamage(const Player*, const Creature*, const Item*, bool)' cannot have `const' method qualifier
../weapons.cpp: In function `int32_t getWeaponDamage(const Player*, const Creature*, const Item*, bool)':
../weapons.cpp:991: error: redefinition of `int32_t getWeaponDamage(const Player*, const Creature*, const Item*, bool)'
../weapons.cpp:679: error: `int32_t getWeaponDamage(const Player*, const Creature*, const Item*, bool)' previously defined here
../weapons.cpp:992: error: `ammuAttackValue' was not declared in this scope
../weapons.cpp:995: error: invalid use of undefined type `struct Player'
../condition.h:33: error: forward declaration of `struct Player'
../weapons.cpp:1000: error: invalid use of undefined type `const struct Player'
../condition.h:33: error: forward declaration of `const struct Player'

../weapons.cpp:1000: error: `SKILL_LEVEL' was not declared in this scope
../weapons.cpp:1001: error: invalid use of undefined type `const struct Player'
../condition.h:33: error: forward declaration of `const struct Player'
../weapons.cpp:1003: error: `Weapons' is not a class or namespace
../weapons.cpp:1007: error: invalid use of undefined type `const struct Player'
../condition.h:33: error: forward declaration of `const struct Player'
../weapons.cpp:1010: error: `Vocation' was not declared in this scope
../weapons.cpp:1010: error: `vocation' was not declared in this scope
../weapons.cpp:1010: error: invalid use of undefined type `const struct Player'
../condition.h:33: error: forward declaration of `const struct Player'
../weapons.cpp:1020: error: invalid use of undefined type `const struct Creature'
../condition.h:32: error: forward declaration of `const struct Creature'
../weapons.cpp:1021: error: invalid use of undefined type `const struct Player'
../condition.h:33: error: forward declaration of `const struct Player'
../weapons.cpp:1023: error: invalid use of undefined type `const struct Player'
../condition.h:33: error: forward declaration of `const struct Player'
../weapons.cpp: At global scope:
../weapons.cpp:1029: error: `WeaponDistance' is not a class or namespace
../weapons.cpp:1031: error: non-member function `bool getSkillType(const Player*, const Item*, skills_t&, uint32_t&)' cannot have `const' method qualifier
../weapons.cpp: In function `bool getSkillType(const Player*, const Item*, skills_t&, uint32_t&)':
../weapons.cpp:1031: error: redefinition of `bool getSkillType(const Player*, const Item*, skills_t&, uint32_t&)'
../weapons.cpp:621: error: `bool getSkillType(const Player*, const Item*, skills_t&, uint32_t&)' previously defined here
../weapons.cpp:1035: error: invalid use of undefined type `const struct Player'
../condition.h:33: error: forward declaration of `const struct Player'
../weapons.cpp:1037: error: invalid use of undefined type `const struct Player'
../condition.h:33: error: forward declaration of `const struct Player'

../weapons.cpp: At global scope:
../weapons.cpp:1057: error: `WeaponWand' has not been declared
../weapons.cpp:1057: error: ISO C++ forbids declaration of `WeaponWand' with no type
../weapons.cpp: In function `int WeaponWand(LuaScriptInterface*)':
../weapons.cpp:1057: error: only constructors take base initializers
../weapons.cpp:1060: error: `minChange' was not declared in this scope
../weapons.cpp:1061: error: `maxChange' was not declared in this scope
../weapons.cpp:1062: error: `params' was not declared in this scope
../weapons.cpp: At global scope:
../weapons.cpp:1066: error: `WeaponWand' is not a class or namespace
../weapons.cpp: In function `bool configureEvent(xmlNode*)':
../weapons.cpp:1067: error: redefinition of `bool configureEvent(xmlNode*)'
../weapons.cpp:191: error: `bool configureEvent(xmlNode*)' previously defined here
../weapons.cpp:1068: error: `Weapon' is not a class or namespace

../weapons.cpp:1074: error: `minChange' was not declared in this scope
../weapons.cpp:1077: error: `maxChange' was not declared in this scope

../weapons.cpp: At global scope:
../weapons.cpp:1082: error: `WeaponWand' is not a class or namespace
../weapons.cpp: In function `bool configureWeapon(const ItemType&)':
../weapons.cpp:1083: error: redefinition of `bool configureWeapon(const ItemType&)'
../weapons.cpp:326: error: `bool configureWeapon(const ItemType&)' previously defined here
../weapons.cpp:1084: error: `m_scripted' was not declared in this scope
../weapons.cpp:1085: error: `range' was not declared in this scope
../weapons.cpp:1086: error: `params' was not declared in this scope
../weapons.cpp:1088: error: `Weapon' is not a class or namespace
../weapons.cpp: At global scope:
../weapons.cpp:1091: error: `WeaponWand' is not a class or namespace
../weapons.cpp:1092: error: non-member function `int32_t getWeaponDamage(const Player*, const Creature*, const Item*, bool)' cannot have `const' method qualifier
../weapons.cpp: In function `int32_t getWeaponDamage(const Player*, const Creature*, const Item*, bool)':
../weapons.cpp:1092: error: redefinition of `int32_t getWeaponDamage(const Player*, const Creature*, const Item*, bool)'
../weapons.cpp:679: error: `int32_t getWeaponDamage(const Player*, const Creature*, const Item*, bool)' previously defined here
../weapons.cpp:1095: error: invalid use of undefined type `const struct Player'
../condition.h:33: error: forward declaration of `const struct Player'
../weapons.cpp:1096: error: `maxChange' was not declared in this scope
../weapons.cpp:1099: error: `minChange' was not declared in this scope
../weapons.cpp:1099: error: `maxChange' was not declared in this scope

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

Ejecución Terminada
(500 errors)

I need help, so I never compiled, but I tryed many times...

Thanks, bye!

PD: I followed this tutorial to compile <How to compile The Forgotten Server latest sources>
 
Last edited:
Hey, I need to solve it the most faster as possible please.

Sorry for spamming 2x posts... but I really need help.

Thanks
 
That's because boost is missing.Download the dev c++ from my first post or check if the linkers are correct
 
I downloaded your Dev-C++, and I putted the linkers you said, I will try one more time tomorrow xD.
I putted nothing on Dir. of Libraries or Dir. of Includes.

Help me please.

PD: In the Dev-C++ of your first post, it includes the boost?
 
Status
Not open for further replies.
Back
Top