gcc cc1: all warnings being treated as errors

cc1: all warnings being treated as errors

在Makefile中找到 -Werror项,删除即可。删除后重新编译。

或设置环境变量 c工程设置
export CFLAGS = "-Wno-error"
c++工程设置
export CXXFLAGS = "-Wno-error"

原文地址:https://www.cnblogs.com/yoyotl/p/7900782.html