在 debian 9 上编译 azerothcore 时出错

问题描述

编译过程在大约 11% 处中断。我在 azerothcore/build/ 目录中并运行命令

a = [2,2,3,4]

print([])   # print just empty list
for i in range(len(a)):     # get the rest
    for j in range(i+1,len(a)+1):
        print(a[i:j])

错误包括在下面。

make -j4

我正在使用这些版本的 gcc 和 cmake。 gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516 cmake 3.18.2

解决方法

您的编译器版本太旧。尝试更新版本的 gccclang

您至少需要 gcc 7.5+ 或 clang 6,但建议使用最新的稳定版本。