首先,需在安装CDT插件
1、启动Eclipse, 打开“Help”->”Install New Software” 菜单。
2、点击 “Add”按钮去添加一个新的资源地址。填写插件资源名称,以及插件地址URL
可到http://www.eclipse.org/cdt/downloads.php下载对应版本
- Eclipse 4.3 (Kepler): http://download.eclipse.org/tools/cdt/releases/kepler
- Eclipse 4.2 (Juno): http://download.eclipse.org/tools/cdt/releases/juno
- Eclipse 3.7 (Indigo): http://download.eclipse.org/tools/cdt/releases/indigo
- Eclipse 3.6 (Helios): http://download.eclipse.org/tools/cdt/releases/helios
- Eclipse 3.5 (Galileo) http://download.eclipse.org/tools/cdt/releases/galileo
主意里面有GOOGLE的远程文件,所以可能你需要用国外的VPN来访问。
2、安装MinGW,为了编译C程序
http://sourceforge.net/projects/mingw/files/
装好后,设置环境变量MINGW_HOME 和 PATH