海湾合作委员会C99不是默认的C版本? [英] C99 not default C- version for GCC?
问题描述
为什么不GCC的默认编译C99?我的意思是,为什么有必要添加--std = C99标志
每次在C99中,code被写入?
Why does not GCC compile the C99 by default? I mean why is it necessary to add --std=c99 flag everytime a code in C99 is written?
推荐答案
编辑:由于GCC 5, -std = gnu11
是默认。请参见移植到GCC 5 。
As of GCC 5, -std=gnu11
is the default. See Porting to GCC 5.
请参阅Ç方言选项 , gnu89
是默认的。
`gnu89
ISO C90的GNU方言(包括一些
C99的功能)。这是默认
C $ C $角
GNU dialect of ISO C90 (including some C99 features). This is the default for C code.
由于@tsv提到,ISO C99不完全支持尚未:
As @tsv mentioned, ISO C99 is not fully supported yet:
`C99结果
`C9X'结果
`iso9899:1999结果
`iso9899:199X
`c99'
`c9x'
`iso9899:1999'
`iso9899:199x'
ISO C99。请注意,此标准还没有完全的支持;看到 http://gcc.gnu.org/c99status.html 了解详情。名字`C9X'和'iso9899:199X是德precated。
ISO C99. Note that this standard is not yet fully supported; see http://gcc.gnu.org/c99status.html for more information. The names `c9x' and `iso9899:199x' are deprecated.
和也:
`gnu99'结果
`gnu9x
`gnu99'
`gnu9x'
ISO C99的GNU方言。当ISO C99在GCC全面实施,这将成为默认的。这个名字`gnu9x'是pcated德$ P $。
GNU dialect of ISO C99. When ISO C99 is fully implemented in GCC, this will become the default. The name `gnu9x' is deprecated.
这篇关于海湾合作委员会C99不是默认的C版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!