cmangos / issues

This repository is used as a centralized point for all issues regarding CMaNGOS.
180 stars 47 forks source link

🐛 [Bug Report] [WoTLK] [Compile] Error in UnitAI.cpp, PlayerAI.cpp, & CharmAI.cpp #2631

Closed adellaci closed 2 years ago

adellaci commented 2 years ago

Bug Details

/home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp: In constructor ‘PriestAI::PriestAI(Player*)’:
/home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:32:40: error: invalid use of incomplete type ‘class Player’
   32 |         if (uint32 mindBlast = m_player->LookupHighestLearnedRank(SPELL_MIND_BLAST))
      |                                        ^~
In file included from /home/mangos/cmangos/wotlk/src/game/AI/BaseAI/UnitAI.h:29,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/PlayerAI.h:22,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:19:
/home/mangos/cmangos/wotlk/src/game/Entities/EntitiesMgr.h:35:7: note: forward declaration of ‘class Player’
   35 | class Player;
      |       ^~~~~~
/home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:34:36: error: invalid use of incomplete type ‘class Player’
   34 |         if (uint32 spell = m_player->LookupHighestLearnedRank(SPELL_SHADOW_WORD_PAIN))
      |                                    ^~
In file included from /home/mangos/cmangos/wotlk/src/game/AI/BaseAI/UnitAI.h:29,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/PlayerAI.h:22,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:19:
/home/mangos/cmangos/wotlk/src/game/Entities/EntitiesMgr.h:35:7: note: forward declaration of ‘class Player’
   35 | class Player;
      |       ^~~~~~
/home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:36:36: error: invalid use of incomplete type ‘class Player’
   36 |         if (uint32 spell = m_player->LookupHighestLearnedRank(SPELL_PSYCHIC_SCREAM))
      |                                    ^~
In file included from /home/mangos/cmangos/wotlk/src/game/AI/BaseAI/UnitAI.h:29,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/PlayerAI.h:22,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:19:
/home/mangos/cmangos/wotlk/src/game/Entities/EntitiesMgr.h:35:7: note: forward declaration of ‘class Player’
   35 | class Player;
      |       ^~~~~~
/home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp: In constructor ‘MageAI::MageAI(Player*)’:
/home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:52:39: error: invalid use of incomplete type ‘class Player’
   52 |         if (uint32 fireball = m_player->LookupHighestLearnedRank(SPELL_FIREBALL))
      |                                       ^~
In file included from /home/mangos/cmangos/wotlk/src/game/AI/BaseAI/UnitAI.h:29,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/PlayerAI.h:22,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:19:
/home/mangos/cmangos/wotlk/src/game/Entities/EntitiesMgr.h:35:7: note: forward declaration of ‘class Player’
   35 | class Player;
      |       ^~~~~~
/home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:54:36: error: invalid use of incomplete type ‘class Player’
   54 |         if (uint32 spell = m_player->LookupHighestLearnedRank(SPELL_BLIZZARD))
      |                                    ^~
In file included from /home/mangos/cmangos/wotlk/src/game/AI/BaseAI/UnitAI.h:29,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/PlayerAI.h:22,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:19:
/home/mangos/cmangos/wotlk/src/game/Entities/EntitiesMgr.h:35:7: note: forward declaration of ‘class Player’
   35 | class Player;
      |       ^~~~~~
/home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:56:36: error: invalid use of incomplete type ‘class Player’
   56 |         if (uint32 spell = m_player->LookupHighestLearnedRank(SPELL_FROSTBOLT))
      |                                    ^~
In file included from /home/mangos/cmangos/wotlk/src/game/AI/BaseAI/UnitAI.h:29,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/PlayerAI.h:22,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:19:
/home/mangos/cmangos/wotlk/src/game/Entities/EntitiesMgr.h:35:7: note: forward declaration of ‘class Player’
   35 | class Player;
      |       ^~~~~~
/home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp: In constructor ‘WarlockAI::WarlockAI(Player*)’:
/home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:72:41: error: invalid use of incomplete type ‘class Player’
   72 |         if (uint32 shadowBolt = m_player->LookupHighestLearnedRank(SPELL_SHADOW_BOLT))
      |                                         ^~
In file included from /home/mangos/cmangos/wotlk/src/game/AI/BaseAI/UnitAI.h:29,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/PlayerAI.h:22,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:19:
/home/mangos/cmangos/wotlk/src/game/Entities/EntitiesMgr.h:35:7: note: forward declaration of ‘class Player’
   35 | class Player;
      |       ^~~~~~
/home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:74:36: error: invalid use of incomplete type ‘class Player’
   74 |         if (uint32 spell = m_player->LookupHighestLearnedRank(SPELL_RAIN_OF_FIRE))
      |                                    ^~
In file included from /home/mangos/cmangos/wotlk/src/game/AI/BaseAI/UnitAI.h:29,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/PlayerAI.h:22,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:19:
/home/mangos/cmangos/wotlk/src/game/Entities/EntitiesMgr.h:35:7: note: forward declaration of ‘class Player’
   35 | class Player;
      |       ^~~~~~
/home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:76:36: error: invalid use of incomplete type ‘class Player’
   76 |         if (uint32 spell = m_player->LookupHighestLearnedRank(SPELL_FEAR))
      |                                    ^~
In file included from /home/mangos/cmangos/wotlk/src/game/AI/BaseAI/UnitAI.h:29,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/PlayerAI.h:22,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:19:
/home/mangos/cmangos/wotlk/src/game/Entities/EntitiesMgr.h:35:7: note: forward declaration of ‘class Player’
   35 | class Player;
      |       ^~~~~~
/home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp: In constructor ‘RogueAI::RogueAI(Player*)’:
/home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:92:45: error: invalid use of incomplete type ‘class Player’
   92 |         if (uint32 sinisterStrike = m_player->LookupHighestLearnedRank(SPELL_SINISTER_STRIKE))
      |                                             ^~
In file included from /home/mangos/cmangos/wotlk/src/game/AI/BaseAI/UnitAI.h:29,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/PlayerAI.h:22,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:19:
/home/mangos/cmangos/wotlk/src/game/Entities/EntitiesMgr.h:35:7: note: forward declaration of ‘class Player’
   35 | class Player;
      |       ^~~~~~
/home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:94:36: error: invalid use of incomplete type ‘class Player’
   94 |         if (uint32 spell = m_player->LookupHighestLearnedRank(SPELL_BLIND))
      |                                    ^~
In file included from /home/mangos/cmangos/wotlk/src/game/AI/BaseAI/UnitAI.h:29,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/PlayerAI.h:22,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:19:
/home/mangos/cmangos/wotlk/src/game/Entities/EntitiesMgr.h:35:7: note: forward declaration of ‘class Player’
   35 | class Player;
      |       ^~~~~~
/home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:96:36: error: invalid use of incomplete type ‘class Player’
   96 |         if (uint32 spell = m_player->LookupHighestLearnedRank(SPELL_EVISCERATE))
      |                                    ^~
In file included from /home/mangos/cmangos/wotlk/src/game/AI/BaseAI/UnitAI.h:29,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/PlayerAI.h:22,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:19:
/home/mangos/cmangos/wotlk/src/game/Entities/EntitiesMgr.h:35:7: note: forward declaration of ‘class Player’
   35 | class Player;
      |       ^~~~~~
/home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp: In constructor ‘DruidAI::DruidAI(Player*)’:
/home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:112:39: error: invalid use of incomplete type ‘class Player’
  112 |         if (uint32 moonfire = m_player->LookupHighestLearnedRank(SPELL_MOONFIRE))
      |                                       ^~
In file included from /home/mangos/cmangos/wotlk/src/game/AI/BaseAI/UnitAI.h:29,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/PlayerAI.h:22,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:19:
/home/mangos/cmangos/wotlk/src/game/Entities/EntitiesMgr.h:35:7: note: forward declaration of ‘class Player’
   35 | class Player;
      |       ^~~~~~
/home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:114:36: error: invalid use of incomplete type ‘class Player’
  114 |         if (uint32 spell = m_player->LookupHighestLearnedRank(SPELL_WRATH))
      |                                    ^~
In file included from /home/mangos/cmangos/wotlk/src/game/AI/BaseAI/UnitAI.h:29,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/PlayerAI.h:22,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:19:
/home/mangos/cmangos/wotlk/src/game/Entities/EntitiesMgr.h:35:7: note: forward declaration of ‘class Player’
   35 | class Player;
      |       ^~~~~~
/home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:116:36: error: invalid use of incomplete type ‘class Player’
  116 |         if (uint32 spell = m_player->LookupHighestLearnedRank(SPELL_HURRICANE))
      |                                    ^~
In file included from /home/mangos/cmangos/wotlk/src/game/AI/BaseAI/UnitAI.h:29,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/PlayerAI.h:22,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:19:
/home/mangos/cmangos/wotlk/src/game/Entities/EntitiesMgr.h:35:7: note: forward declaration of ‘class Player’
   35 | class Player;
      |       ^~~~~~
/home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp: In constructor ‘ShamanAI::ShamanAI(Player*)’:
/home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:133:41: error: invalid use of incomplete type ‘class Player’
  133 |         if (uint32 flameShock = m_player->LookupHighestLearnedRank(SPELL_FLAME_SHOCK))
      |                                         ^~
In file included from /home/mangos/cmangos/wotlk/src/game/AI/BaseAI/UnitAI.h:29,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/PlayerAI.h:22,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:19:
/home/mangos/cmangos/wotlk/src/game/Entities/EntitiesMgr.h:35:7: note: forward declaration of ‘class Player’
   35 | class Player;
      |       ^~~~~~
/home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:135:36: error: invalid use of incomplete type ‘class Player’
  135 |         if (uint32 spell = m_player->LookupHighestLearnedRank(SPELL_HEROISM))
      |                                    ^~
In file included from /home/mangos/cmangos/wotlk/src/game/AI/BaseAI/UnitAI.h:29,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/PlayerAI.h:22,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:19:
/home/mangos/cmangos/wotlk/src/game/Entities/EntitiesMgr.h:35:7: note: forward declaration of ‘class Player’
   35 | class Player;
      |       ^~~~~~
/home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:137:36: error: invalid use of incomplete type ‘class Player’
  137 |         if (uint32 spell = m_player->LookupHighestLearnedRank(SPELL_BLOODLUST))
      |                                    ^~
In file included from /home/mangos/cmangos/wotlk/src/game/AI/BaseAI/UnitAI.h:29,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/PlayerAI.h:22,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:19:
/home/mangos/cmangos/wotlk/src/game/Entities/EntitiesMgr.h:35:7: note: forward declaration of ‘class Player’
   35 | class Player;
      |       ^~~~~~
/home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:139:36: error: invalid use of incomplete type ‘class Player’
  139 |         if (uint32 spell = m_player->LookupHighestLearnedRank(SPELL_LIGHTNING_BOLT))
      |                                    ^~
In file included from /home/mangos/cmangos/wotlk/src/game/AI/BaseAI/UnitAI.h:29,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/PlayerAI.h:22,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:19:
/home/mangos/cmangos/wotlk/src/game/Entities/EntitiesMgr.h:35:7: note: forward declaration of ‘class Player’
   35 | class Player;
      |       ^~~~~~
/home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp: In constructor ‘HunterAI::HunterAI(Player*)’:
/home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:155:43: error: invalid use of incomplete type ‘class Player’
  155 |         if (uint32 raptorStrike = m_player->LookupHighestLearnedRank(SPELL_RAPTOR_STRIKE))
      |                                           ^~
In file included from /home/mangos/cmangos/wotlk/src/game/AI/BaseAI/UnitAI.h:29,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/PlayerAI.h:22,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:19:
/home/mangos/cmangos/wotlk/src/game/Entities/EntitiesMgr.h:35:7: note: forward declaration of ‘class Player’
   35 | class Player;
      |       ^~~~~~
/home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:157:36: error: invalid use of incomplete type ‘class Player’
  157 |         if (uint32 spell = m_player->LookupHighestLearnedRank(SPELL_VOLLEY))
      |                                    ^~
In file included from /home/mangos/cmangos/wotlk/src/game/AI/BaseAI/UnitAI.h:29,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/PlayerAI.h:22,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:19:
/home/mangos/cmangos/wotlk/src/game/Entities/EntitiesMgr.h:35:7: note: forward declaration of ‘class Player’
   35 | class Player;
      |       ^~~~~~
/home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:159:36: error: invalid use of incomplete type ‘class Player’
  159 |         if (uint32 spell = m_player->LookupHighestLearnedRank(SPELL_EXPLOSIVE_TRAP))
      |                                    ^~
In file included from /home/mangos/cmangos/wotlk/src/game/AI/BaseAI/UnitAI.h:29,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/PlayerAI.h:22,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:19:
/home/mangos/cmangos/wotlk/src/game/Entities/EntitiesMgr.h:35:7: note: forward declaration of ‘class Player’
   35 | class Player;
      |       ^~~~~~
/home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp: In constructor ‘WarriorAI::WarriorAI(Player*)’:
/home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:175:43: error: invalid use of incomplete type ‘class Player’
  175 |         if (uint32 heroicStrike = m_player->LookupHighestLearnedRank(SPELL_HEROIC_STRIKE))
      |                                           ^~
In file included from /home/mangos/cmangos/wotlk/src/game/AI/BaseAI/UnitAI.h:29,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/PlayerAI.h:22,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:19:
/home/mangos/cmangos/wotlk/src/game/Entities/EntitiesMgr.h:35:7: note: forward declaration of ‘class Player’
   35 | class Player;
      |       ^~~~~~
/home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:177:36: error: invalid use of incomplete type ‘class Player’
  177 |         if (uint32 spell = m_player->LookupHighestLearnedRank(SPELL_INTIMIDATING_SHOUT))
      |                                    ^~
In file included from /home/mangos/cmangos/wotlk/src/game/AI/BaseAI/UnitAI.h:29,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/PlayerAI.h:22,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:19:
/home/mangos/cmangos/wotlk/src/game/Entities/EntitiesMgr.h:35:7: note: forward declaration of ‘class Player’
   35 | class Player;
      |       ^~~~~~
/home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:179:36: error: invalid use of incomplete type ‘class Player’
  179 |         if (uint32 spell = m_player->LookupHighestLearnedRank(SPELL_HAMSTRING))
      |                                    ^~
In file included from /home/mangos/cmangos/wotlk/src/game/AI/BaseAI/UnitAI.h:29,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/PlayerAI.h:22,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:19:
/home/mangos/cmangos/wotlk/src/game/Entities/EntitiesMgr.h:35:7: note: forward declaration of ‘class Player’
   35 | class Player;
      |       ^~~~~~
/home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp: In constructor ‘PaladinAI::PaladinAI(Player*)’:
/home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:195:36: error: invalid use of incomplete type ‘class Player’
  195 |         if (uint32 spell = m_player->LookupHighestLearnedRank(SPELL_FLASH_OF_LIGHT))
      |                                    ^~
In file included from /home/mangos/cmangos/wotlk/src/game/AI/BaseAI/UnitAI.h:29,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/PlayerAI.h:22,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:19:
/home/mangos/cmangos/wotlk/src/game/Entities/EntitiesMgr.h:35:7: note: forward declaration of ‘class Player’
   35 | class Player;
      |       ^~~~~~
/home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:197:36: error: invalid use of incomplete type ‘class Player’
  197 |         if (uint32 spell = m_player->LookupHighestLearnedRank(SPELL_HAMMER_OF_JUSTICE))
      |                                    ^~
In file included from /home/mangos/cmangos/wotlk/src/game/AI/BaseAI/UnitAI.h:29,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/PlayerAI.h:22,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:19:
/home/mangos/cmangos/wotlk/src/game/Entities/EntitiesMgr.h:35:7: note: forward declaration of ‘class Player’
   35 | class Player;
      |       ^~~~~~
/home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:199:36: error: invalid use of incomplete type ‘class Player’
  199 |         if (uint32 spell = m_player->LookupHighestLearnedRank(SPELL_CONSECRATION))
      |                                    ^~
In file included from /home/mangos/cmangos/wotlk/src/game/AI/BaseAI/UnitAI.h:29,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/PlayerAI.h:22,
                 from /home/mangos/cmangos/wotlk/src/game/AI/PlayerAI/CharmAI.cpp:19:
/home/mangos/cmangos/wotlk/src/game/Entities/EntitiesMgr.h:35:7: note: forward declaration of ‘class Player’
   35 | class Player;
      |       ^~~~~~
make[2]: *** [src/game/CMakeFiles/game.dir/build.make:232: src/game/CMakeFiles/game.dir/AI/PlayerAI/CharmAI.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....

Steps to Reproduce

1.Compile WoTLK 2. 3. 4.

Expected behavior

No response

Suggested Workaround

No response

Crash Log

No response

Core SHA1 Commit Hash

CMaNGOS-Core revision : 46f65785cf088605d3978f592985a4ca11de0bb5

Database SHA1 Commit Hash

N/A

Operating System

Ubuntu 20.04.3 Server LTS

Client Version

3.3.5a (Wrath of the Lich King)

adellaci commented 2 years ago

If i change my cmake from;

cmake \~/cmangos/wotlk -DCMAKE_INSTALL_PREFIX=~/wow-servers/wotlk -DBUILD_EXTRACTORS=On -DBUILD_AHBOT=ON -DBUILD_PLAYERBOT=ON -DPCH=0 -DDEBUG=0 -DBUILD_RECASTDEMOMOD=OFF

to

cmake \~/cmangos/wotlk -DCMAKE_INSTALL_PREFIX=~/wow-servers/wotlk -DBUILD_EXTRACTORS=On -DBUILD_AHBOT=ON -DBUILD_PLAYERBOT=ON -DPCH=1 -DDEBUG=0 -DBUILD_RECASTDEMOMOD=OFF


It compiles without error when i enable 'PCH'
adellaci commented 2 years ago

Should this be left open or close it out?

adellaci commented 2 years ago

CMaNGOS-Core revision : d5f057a2a5dc0aa62b19a87526c79a761053858b

PCH = 1: Compiles without error PCH = 0: Compiles with error

/home/mangos/cmangos/wotlk/src/game/Spells/Scripts/Scripting/ClassScripts/Hunter.cpp: In member function ‘virtual SpellAuraProcResult RoarOfSacrifice::OnProc(Aura*, ProcExecutionData&) const’:
/home/mangos/cmangos/wotlk/src/game/Spells/Scripts/Scripting/ClassScripts/Hunter.cpp:74:25: error: invalid use of incomplete type ‘class Aura’
   74 |         Unit* pet = aura->GetCaster();
      |                         ^~
In file included from /home/mangos/cmangos/wotlk/src/game/Entities/Object.h:32,
                 from /home/mangos/cmangos/wotlk/src/game/Entities/Unit.h:30,
                 from /home/mangos/cmangos/wotlk/src/game/Spells/Spell.h:27,
                 from /home/mangos/cmangos/wotlk/src/game/Spells/Scripts/SpellScript.h:22,
                 from /home/mangos/cmangos/wotlk/src/game/Spells/Scripts/Scripting/ClassScripts/Hunter.cpp:19:
/home/mangos/cmangos/wotlk/src/game/Entities/PlayerDefines.h:30:7: note: forward declaration of ‘class Aura’
   30 | class Aura;
      |       ^~~~
/home/mangos/cmangos/wotlk/src/game/Spells/Scripts/Scripting/ClassScripts/Hunter.cpp:75:28: error: invalid use of incomplete type ‘class Aura’
   75 |         Unit* target = aura->GetTarget();
      |                            ^~
In file included from /home/mangos/cmangos/wotlk/src/game/Entities/Object.h:32,
                 from /home/mangos/cmangos/wotlk/src/game/Entities/Unit.h:30,
                 from /home/mangos/cmangos/wotlk/src/game/Spells/Spell.h:27,
                 from /home/mangos/cmangos/wotlk/src/game/Spells/Scripts/SpellScript.h:22,
                 from /home/mangos/cmangos/wotlk/src/game/Spells/Scripts/Scripting/ClassScripts/Hunter.cpp:19:
/home/mangos/cmangos/wotlk/src/game/Entities/PlayerDefines.h:30:7: note: forward declaration of ‘class Aura’
   30 | class Aura;
      |       ^~~~