分页: 1 / 1

c99

发表于 : 2011-11-04 21:31
畅行天下008
为什么在我的终端编译文件会出现这样的警告 -std=c99 -std=gnu99 是什么意思 请问这个在gcc后面加上这个-std=c99 -std=gnu99 有什么作用

Re: c99

发表于 : 2011-11-04 21:38
be00
-std=<standard> Assume that the input sources are for <standard>

假设输入源在<standard>

Re: c99

发表于 : 2011-11-28 9:47
stlxv
用于说明源代码所符合的标准。
比如你编写的程序符合c99这个国际标准,就要加上-std=c99,然后gcc就会以c99的眼光来看待你的源代码。