cc1: all warnings being treated as errors
在Makefile中找到 -Werror项,删除即可。删除后重新编译。
-Werror
或设置环境变量 c工程设置 export CFLAGS = "-Wno-error" c++工程设置 export CXXFLAGS = "-Wno-error"
export CFLAGS = "-Wno-error" c++工程设置 export CXXFLAGS = "-Wno-error"