铛:错误:未知参数:'-壁' [英] clang: error: unknown argument: '-wall'
本文介绍了铛:错误:未知参数:'-壁'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在遍历本教程,在那里我必须创建此制作
文件:
I was walking through this tutorial, where I had to create this make
file:
CFLAGS=-wall -g
clean:
rm -f ex1
然后,我在此中使用了上述 make
文件教程,并运行以下命令:
I then used the above make
file in this tutorial, and ran the following command:
$ make ex3
这样做的时候,我得到以下输出:
When I did that, I got the following output:
cc -wall -g ex3.c -o ex3
clang: error: unknown argument: '-wall'
make: *** [ex3] Error 1
为什么会出现错误?我该如何解决?
Why did I get the error? How can I fix it?
谢谢.
推荐答案
您要查找的选项是 -Wall
.
通常,以 -W
开头的选项表示要启用或禁用的特定警告或警告组.
In general, options starting with -W
indicate specific warnings or sets of warnings to enable or disable.
这篇关于铛:错误:未知参数:'-壁'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文