AshamaneProject / AshamaneCore

AshamaneCore Open Source MMO Framework (master = 9.0.2.36949, bfa = 8.3.7.35284, legion = 7.3.5.26972)
GNU General Public License v2.0
321 stars 357 forks source link

Ubuntu 20.04.2 LTS - Compile Issue #277

Open nathanielnderson opened 3 years ago

nathanielnderson commented 3 years ago

[ 2%] Built target g3dlib [ 2%] Built target Detour [ 2%] Built target Recast [ 2%] Built target fmt [ 3%] Built target jemalloc [ 3%] Built target gsoap [ 5%] Built target protobuf [ 5%] Built target duktape [ 7%] Built target casc [ 7%] Built target revision_data.h [ 9%] Built target common [ 10%] Built target database [ 13%] Built target proto [ 14%] Built target shared [ 15%] Built target bnetserver [ 15%] Building CXX object src/server/game/CMakeFiles/game.dir/cmake_pch.hxx.pch In file included from :1: In file included from /home/trinitycore/ashermane/AshamaneCore/build/src/server/game/CMakeFiles/game.dir/cmake_pch.hxx:5: In file included from /home/trinitycore/ashermane/AshamaneCore/src/server/game/PrecompiledHeaders/gamePCH.h:31: /home/trinitycore/ashermane/AshamaneCore/src/server/game/Entities/Player/Player.h:117:16: error: forward declaration of struct cannot have a nested name specifier struct RatedPvpInfo::BracketInfo; ^~~~~~ 1 error generated. make[2]: [src/server/game/CMakeFiles/game.dir/build.make:64: src/server/game/CMakeFiles/game.dir/cmake_pch.hxx.pch] Error 1 make[1]: [CMakeFiles/Makefile2:1392: src/server/game/CMakeFiles/game.dir/all] Error 2 make: *** [Makefile:130: all] Error 2

Getting this error when compiling the core on Ubuntu 20.04.2 LTS. Any assistance with this would be greatly appreciated.

fluxurion commented 2 years ago

change to

namespace RatedPvpInfo
{
    struct BracketInfo;
}