gcc cc1: all warnings being treated as errors
Posted 一沙世界
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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"
以上是关于gcc cc1: all warnings being treated as errors的主要内容,如果未能解决你的问题,请参考以下文章
在 Linux 上的 C++ 源文件上运行“gcc”会给出“cc1plus: out of memory allocating ...”错误消息
gcc: error trying to exec ‘cc1plus‘: execvp: Permission denied
CentOS gcc编译报错:gcc: error trying to exec ‘cc1plus‘: execvp: No such file or directory(原因:g++没安装)
gcc: error trying to exec ‘cc1plus‘: execvp: Permission denied