---
title: "eclipseC/C++环境下添加C99特性"
author: "strutsliu"
date: "2012-02-29T19:39:45Z"
tags: []
categories: ["开源软件"]
slug: "eclipsec-c-c99"
draft: false
lastmod: "2012-02-29T19:38:10Z"
id: 1432154
url: "https://strutsliu.iteye.com/blog/1432154"
---

添加c99新特性：
新装好的eclipse不支持c99新特性，如for ( int i = 0; i < 10; i++){ }是会报错的，这时，你可以自行添加C99特性
（如果对C99新特性不熟悉，请浏览我上一篇博客）
具体步骤:
 
右键点击项目->Properties->C/C++ Build -> Settings -> Tool Settings -> GCC C Complier -> Miscellaneous

在 "Other flags" 中追加 -std=c99
具体图见附件。
转载自http://huangfeinetjava.iteye.com/blog/1246294