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"

posted @ 2017-12-07 22:38  一沙世界  阅读(15518)  评论(0编辑  收藏  举报