Closed adellaci closed 2 years ago
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'
Should this be left open or close it out?
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;
| ^~~~
Bug Details
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)