1,下载Mingw.exe,安装(假定安装在C:]MinGW),设置环境变量:
PATH = C:\MinGW\bin;%PATH%
LIBRARY_PATH = C:\MinGW\lib
C_INCLUDE_PATH = C:\MinGW\include
CPLUS_INCLUDE_PATH = C:\MinGW\include\c++\3.2.3;C:\MinGW\include\c++\3.2.3\mingw32;C:\MinGW\include\c++\3.2.3\backward;C:\MinGW\include
2,下载org.eclipse.cdt-2.1.1-win32.x86.zip,安装。
注意,CDT 2.*适用于Eclipse 3.0.*。CDT3.*适用于Eclipse 3.1.*
3,打开eclipse,进入可以创建C/C++项目了!
写一个helloworld程序会发现不能build。因为Eclipse是调用make命令构件,而C:\MinGW\bin下只有mingw32-make.exe。把mingw32-make.exe改成make.exe就行了。
简单使用了一下,感觉比VS亲切。
本文转自xiaotie博客园博客,原文链接http://www.cnblogs.com/xiaotie/archive/2005/10/02/248076.html如需转载请自行联系原作者
xiaotie 集异璧实验室(GEBLAB)