构建错误: ‘-Werror=All’: 没有选项 ‘-WAll’; 是否指的是 ‘-Wall’? 在 Fedora 41 中

作者: Borkido创建于 2026年6月6日更新于 2026年6月7日

尝试构建示例时出现以下错误: `cc1plus: 错误: ‘-Werror=All’: 没有选项 ‘-WAll’; 您是否想要使用 ‘-Wall’? make[1]: *** [Detour.make:135: obj/Debug/Detour/DetourAlloc.o] 错误 1 make: *** [Makefile:47: Detour] 错误 2` 我手动修复了第一个文件,将所有出现的 "-Werror=All" 更改为 "-Werror=all",并通过以下命令应用到所有文件: `find . -type f \( -name 'Makefile' -o -name '*.make' -o -name '*.mk' \) -exec sed -i 's/-Werror=All/-Werror=all/g' {} +` 在第一个文件通过后,示例成功编译。

内容来源: recastnavigation/recastnavigation