简体   繁体   English

如何配置Eclipse以使用-std = c99进行编译?

[英]How does one configure Eclipse to compile using -std=c99?

The question is in the title. 问题在标题中。 Using GCC version 3.4.5 on Windows Vista and a recent version of the Eclipse C/C++ IDE (not sure what version exactly because it's hard to figure out which version is the one for the whole IDE, but I downloaded it two weeks ago so it can't be that old). 在Windows Vista上使用GCC版本3.4.5和Eclipse C / C ++ IDE的最新版本(不确定确切的版本是因为很难确定哪个版本适用于整个IDE,但是我两周前下载了它,所以不能这么老)。

这取决于您使用的构建系统,但是您始终可以尝试将“ CFLAGS = -std = c99”作为构建器的构建和/或环境变量添加。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM