相关疑难解决方法(0)

禁用-Werror ini配置文件

在使用Makefile创建项目时,我收到此错误:

error: implicit declaration of function ‘fatal’ [-Werror=implicit-function-declaration]

cc1: all warnings being treated as errors
Run Code Online (Sandbox Code Playgroud)

./configure --help显示

Optional Features:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --disable-dependency-tracking  speeds up one-time build
  --enable-dependency-tracking   do not reject slow dependency extractors
  --disable-gtktest       do not try to compile and run a test GTK+ program
  --enable-debug    Turn on debugging
Run Code Online (Sandbox Code Playgroud)

怎么能告诉configure不要包含-Werror?

makefile configure

12
推荐指数
2
解决办法
4万
查看次数

标签 统计

configure ×1

makefile ×1