Visual Studio:属性“nodiscard”需要编译器标志“/std:c++17”

问题描述

我正在遵循本指南:https://www.azerothcore.org/wiki/Installation 我正在尝试在 win64 下编译没有附加模块的构建 6a95e61 并得到 439 个相同的错误。在 Visual Studio 中选择构建/构建解决方案时,它们会在大约半分钟后指向不同的文件

C2429 attribute 'nodiscard' requires compiler flag '/std:c++17' (compiling source file C:\Azerothcore\azerothcore\src\server\shared\DataStores\DBCDatabaseLoader.cpp) shared c:\azerothcore\azerothcore\src\common\datastores\dbcfileloader.h 38

enter image description here

完全擦除并从 git-bash 重新开始产生相同的结果,所以我想我在这个过程中犯了错误,任何建议表示赞赏。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)