在GCC设置性病= C99标志 [英] Setting std=c99 flag in GCC
本文介绍了在GCC设置性病= C99标志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在想,如果有我在其中可以设置-std = C99标志,这样我就不必设置它为每一个编辑的任何文件。我使用GCC 4.4在Ubuntu。
I was wondering if there were any files in which I could set the -std=c99 flag, so that I would not have to set it for every compilation. I am using GCC 4.4 on Ubuntu.
推荐答案
在/ usr /斌/ GCC ,使用的/ usr /斌/ C99
。这是调用C99编译的单一Unix的认可方式。在Ubuntu系统中,这点到它调用的脚本 GCC
已经添加了 -std = C99
标志,之后,为precisely你想要什么。
Instead of calling /usr/bin/gcc
, use /usr/bin/c99
. This is the Single-Unix-approved way of invoking a C99 compiler. On an Ubuntu system, this points to a script which invokes gcc
after having added the -std=c99
flag, which is precisely what you want.
这篇关于在GCC设置性病= C99标志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文