什么是编译中的std = c99 [英] what is std=c99 in compilation

查看:626
本文介绍了什么是编译中的std = c99的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我正在尝试使用ubuntu中的C从数据库中检索数据。在编译时,我已经在论坛中读到std = c99必须用于编译。



可能是somone说它是什么。

Hi,

I am trying to retrieve data from database using C in ubuntu. While compiling, i have read in a forum that std=c99 has to be used for compilation.

Could somone say what it is.

推荐答案

C99是C语言标准 - http://en.wikipedia.org/wiki/C99 [ ^ ]

通过设置标志std = C99,您可以在C99编译模式下调用GCC ...

默认情况下,GCC不符合任何标准(但启用所有GNU特定扩展),因此如果要编译一些标准代码你必须设置它...

http ://gcc.gnu.org/onlinedocs/gcc-4.7.2/gcc/Standards.html [ ^ ]
C99 is a C language standard - http://en.wikipedia.org/wiki/C99[^]
By setting the flag std=C99 you invoke GCC in a C99 compilant mode...
By default GCC does not conform to any standard (but enables all GNU specific extensions), so if you want to compile some standard code you have to set it...
http://gcc.gnu.org/onlinedocs/gcc-4.7.2/gcc/Standards.html[^]


这篇关于什么是编译中的std = c99的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆