在window平台使用eclipse开发c++程序:
下载standard版本的eclipse,http://www.eclipse.org/;
下载cdt(c/c++ development toolkit): 在eclipse中的windows-->install New Software. 新增cdt-- http://download.eclipse.org/tools/cdt/releases/kepler
如果cdt安装遇到问题可以到windows-->Preferences中设置一下:
下载cygwin,另外自己加上gcc g++ gdb make就行了;
遇到问题:
console不能打印输出: 在 你的project的debug configuration 中设置 environment
在Path变量中加上 cygwin的安装路径\bin; 如d:\cygwin\bin
附:
在cygwin shell是输入gdb -version会出错 ,之后再运行cygwin.exe加上某些东西好像又可以了,还是说后来在windows的环境变量加上 cygwin的安装路径\bin
,这个还没弄清楚,反正后来是可以了~~