amr shalapy
Banned User
- Joined
- Aug 28, 2014
- Messages
- 122
- Reaction score
- 8
i have this error when start to compile
Code:
Compiler: Default compiler
Building Makefile: "C:\Users\pc\Desktop\madness source\vc10\Makefile.win"
Executing make...
mingw32-make -f "C:\Users\pc\Desktop\madness source\vc10\Makefile.win" all
g++.exe -c ../actions.cpp -o ../actions.o -I"C:/Users/pc/Desktop/Stian's Repack Dev-Cpp v2/include/c++" -I"C:/Users/pc/Desktop/Stian's Repack Dev-Cpp 0.2, 64bit/include" -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -O2
In file included from ../tile.h:23,
from ../map.h:26,
from ../creature.h:28,
from ../player.h:23,
from ../actions.cpp:24:
../item.h: In member function 'int32_t Item::getMaxWriteLength() const':
../item.h:276: error: 'const class ItemType' has no member named 'maxTextLength'
../item.h: In member function 'bool Item::isMovable() const':
../item.h:309: error: 'const class ItemType' has no member named 'movable'
../item.h: In member function 'bool Item::isUsable() const':
../item.h:311: error: 'const class ItemType' has no member named 'usable'
../item.h: In member function 'bool Item::isWare() const':
../item.h:316: error: 'const class ItemType' has no member named 'wareId'
../item.h: In member function 'CombatType_t Item::getElementType() const':
../item.h:321: error: 'const class ItemType' has no member named 'hasAbilities'
../item.h:321: error: base operand of '->' has non-pointer type 'const Abilities'
../item.h: In member function 'int32_t Item::getElementDamage() const':
../item.h:322: error: 'const class ItemType' has no member named 'hasAbilities'
../item.h:322: error: base operand of '->' has non-pointer type 'const Abilities'
../item.h: In member function 'std::string Item::getName() const':
../item.h:360: error: no matching function for call to 'Item::getStringAttribute(const char [5], bool&) const'
../itemattributes.h:88: note: candidates are: const std::string* ItemAttributes::getStringAttribute(const std::string&) const
../item.h: In member function 'std::string Item::getPluralName() const':
../item.h:370: error: no matching function for call to 'Item::getStringAttribute(const char [11], bool&) const'
../itemattributes.h:88: note: candidates are: const std::string* ItemAttributes::getStringAttribute(const std::string&) const
../item.h: In member function 'std::string Item::getArticle() const':
../item.h:380: error: no matching function for call to 'Item::getStringAttribute(const char [8], bool&) const'
../itemattributes.h:88: note: candidates are: const std::string* ItemAttributes::getStringAttribute(const std::string&) const
../item.h: In member function 'bool Item::isScriptProtected() const':
../item.h:390: error: no matching function for call to 'Item::getBooleanAttribute(const char [16], bool&) const'
../itemattributes.h:91: note: candidates are: const bool* ItemAttributes::getBooleanAttribute(const std::string&) const
../item.h: In member function 'int32_t Item::getAttack() const':
../item.h:400: error: no matching function for call to 'Item::getIntegerAttribute(const char [7], bool&) const'
../itemattributes.h:89: note: candidates are: const int32_t* ItemAttributes::getIntegerAttribute(const std::string&) const
../item.h: In member function 'int32_t Item::getPrice() const':
../item.h:410: error: no matching function for call to 'Item::getIntegerAttribute(const char [6], bool&) const'
../itemattributes.h:89: note: candidates are: const int32_t* ItemAttributes::getIntegerAttribute(const std::string&) const
../item.h:414: error: 'const class ItemType' has no member named 'price'
../item.h: In member function 'int32_t Item::getExtraAttack() const':
../item.h:420: error: no matching function for call to 'Item::getIntegerAttribute(const char [12], bool&) const'
../itemattributes.h:89: note: candidates are: const int32_t* ItemAttributes::getIntegerAttribute(const std::string&) const
../item.h: In member function 'int32_t Item::getDefense() const':
../item.h:430: error: no matching function for call to 'Item::getIntegerAttribute(const char [8], bool&) const'
../itemattributes.h:89: note: candidates are: const int32_t* ItemAttributes::getIntegerAttribute(const std::string&) const
../item.h: In member function 'int32_t Item::getExtraDefense() const':
../item.h:440: error: no matching function for call to 'Item::getIntegerAttribute(const char [13], bool&) const'
../itemattributes.h:89: note: candidates are: const int32_t* ItemAttributes::getIntegerAttribute(const std::string&) const
../item.h: In member function 'int32_t Item::getArmor() const':
../item.h:450: error: no matching function for call to 'Item::getIntegerAttribute(const char [6], bool&) const'
../itemattributes.h:89: note: candidates are: const int32_t* ItemAttributes::getIntegerAttribute(const std::string&) const
../item.h: In member function 'int32_t Item::getAttackSpeed() const':
../item.h:460: error: no matching function for call to 'Item::getIntegerAttribute(const char [12], bool&) const'
../itemattributes.h:89: note: candidates are: const int32_t* ItemAttributes::getIntegerAttribute(const std::string&) const
../item.h: In member function 'int32_t Item::getHitChance() const':
../item.h:470: error: no matching function for call to 'Item::getIntegerAttribute(const char [10], bool&) const'
../itemattributes.h:89: note: candidates are: const int32_t* ItemAttributes::getIntegerAttribute(const std::string&) const
../item.h: In member function 'int32_t Item::getShootRange() const':
../item.h:480: error: no matching function for call to 'Item::getIntegerAttribute(const char [11], bool&) const'
../itemattributes.h:89: note: candidates are: const int32_t* ItemAttributes::getIntegerAttribute(const std::string&) const
../item.h: In member function 'bool Item::isDualWield() const':
../item.h:490: error: no matching function for call to 'Item::getBooleanAttribute(const char [10], bool&) const'
../itemattributes.h:91: note: candidates are: const bool* ItemAttributes::getBooleanAttribute(const std::string&) const
../item.h: In member function 'void Item::decreaseDuration(int32_t)':
../item.h:500: error: no matching function for call to 'Item::getIntegerAttribute(const char [9], bool&)'
../itemattributes.h:89: note: candidates are: const int32_t* ItemAttributes::getIntegerAttribute(const std::string&) const
../item.h: In member function 'int32_t Item::getDuration() const':
../item.h:508: error: no matching function for call to 'Item::getIntegerAttribute(const char [9], bool&) const'
../itemattributes.h:89: note: candidates are: const int32_t* ItemAttributes::getIntegerAttribute(const std::string&) const
../item.h: In member function 'std::string Item::getSpecialDescription() const':
../item.h:518: error: no matching function for call to 'Item::getStringAttribute(const char [12], bool&) const'
../itemattributes.h:88: note: candidates are: const std::string* ItemAttributes::getStringAttribute(const std::string&) const
../item.h: In member function 'std::string Item::getText() const':
../item.h:528: error: no matching function for call to 'Item::getStringAttribute(const char [5], bool&) const'
../itemattributes.h:88: note: candidates are: const std::string* ItemAttributes::getStringAttribute(const std::string&) const
../item.h:532: error: 'const class ItemType' has no member named 'text'
../item.h: In member function 'time_t Item::getDate() const':
../item.h:538: error: no matching function for call to 'Item::getIntegerAttribute(const char [5], bool&) const'
../itemattributes.h:89: note: candidates are: const int32_t* ItemAttributes::getIntegerAttribute(const std::string&) const
../item.h:542: error: 'const class ItemType' has no member named 'date'
../item.h: In member function 'std::string Item::getWriter() const':
../item.h:548: error: no matching function for call to 'Item::getStringAttribute(const char [7], bool&) const'
../itemattributes.h:88: note: candidates are: const std::string* ItemAttributes::getStringAttribute(const std::string&) const
../item.h:552: error: 'const class ItemType' has no member named 'writer'
../item.h: In member function 'int32_t Item::getActionId() const':
../item.h:558: error: no matching function for call to 'Item::getIntegerAttribute(const char [4], bool&) const'
../itemattributes.h:89: note: candidates are: const int32_t* ItemAttributes::getIntegerAttribute(const std::string&) const
../item.h: In member function 'int32_t Item::getUniqueId() const':
../item.h:568: error: no matching function for call to 'Item::getIntegerAttribute(const char [4], bool&) const'
../itemattributes.h:89: note: candidates are: const int32_t* ItemAttributes::getIntegerAttribute(const std::string&) const
../item.h: In member function 'uint16_t Item::getCharges() const':
../item.h:578: error: no matching function for call to 'Item::getIntegerAttribute(const char [8], bool&) const'
../itemattributes.h:89: note: candidates are: const int32_t* ItemAttributes::getIntegerAttribute(const std::string&) const
../item.h: In member function 'uint16_t Item::getFluidType() const':
../item.h:588: error: no matching function for call to 'Item::getIntegerAttribute(const char [10], bool&) const'
../itemattributes.h:89: note: candidates are: const int32_t* ItemAttributes::getIntegerAttribute(const std::string&) const
../item.h: In member function 'uint32_t Item::getOwner() const':
../item.h:598: error: no matching function for call to 'Item::getIntegerAttribute(const char [6], bool&) const'
../itemattributes.h:89: note: candidates are: const int32_t* ItemAttributes::getIntegerAttribute(const std::string&) const
../item.h: In member function 'uint32_t Item::getCorpseOwner()':
../item.h:608: error: no matching function for call to 'Item::getIntegerAttribute(const char [12], bool&)'
../itemattributes.h:89: note: candidates are: const int32_t* ItemAttributes::getIntegerAttribute(const std::string&) const
../item.h: In member function 'ItemDecayState_t Item::getDecaying() const':
../item.h:618: error: no matching function for call to 'Item::getIntegerAttribute(const char [9], bool&) const'
../itemattributes.h:89: note: candidates are: const int32_t* ItemAttributes::getIntegerAttribute(const std::string&) const
In file included from ../actions.cpp:35:
../spells.h: At global scope:
../spells.h:37: error: 'SpellGroup_t' was not declared in this scope
../spells.h:37: error: template argument 1 is invalid
../spells.h:37: error: template argument 3 is invalid
../spells.h:37: error: template argument 4 is invalid
../spells.h:37: error: invalid type in declaration before ';' token
../actions.cpp: In member function 'ReturnValue Actions::internalUseItem(Player*, const Position&, uint8_t, Item*, uint32_t)':
../actions.cpp:546: error: invalid conversion from 'const uint16_t*' to 'uint16_t'
../actions.cpp:546: error: initializing argument 2 of 'Item* Game::transformItem(Item*, uint16_t, int32_t)'
../actions.cpp: In member function 'virtual ReturnValue Action::canExecuteAction(const Player*, const Position&)':
../actions.cpp:694: error: 'PlayerCustomFlag_CanUseFar' was not declared in this scope
../actions.cpp: In member function 'virtual bool Action::executeUse(Player*, Item*, const PositionEx&, const PositionEx&, bool, uint32_t)':
../actions.cpp:730: error: could not convert '((Action*)this)->Action::<anonymous>.Event::m_scriptData' to 'bool'
../actions.cpp:731: error: no match for 'operator*' in '*((Action*)this)->Action::<anonymous>.Event::m_scriptData'
mingw32-make: *** [../actions.o] Error 1
Execution terminated
Last edited: