Saturday, December 30, 2006

Eclipse 3.2.1 with CDT installation notes

1.下載eclipse 3.2.1 解壓後的檔案放到任意位置(如:c:\program files\),雙擊eclipse.exe運行
2.下載 cdt 套件org.eclipse.cdt.sdk-3.1.1-win32.x86.zip
或簡裝版org.eclipse.cdt-3.1.1-win32.x86.zip
3.解壓後有feature 和 plugins 將 其中所有檔案移到 eclipse 安裝目錄features 和 plugins內.
4.sourceforge 下載MinGW5.x(2006/12) 官方站www.mingw.org為3.x版且其它gcc windows32 API 等需分開下載及安裝. MinGW5.x可一次安裝所要的libray 和 include files.
5.在windows 加入path c:\MinGW\bin
6.改c:\mingw\bin\mingw32-make.exe 為c:\mingw\bin\make.exe
7.在eclipse 必需以Managed xxxx 形式開Project, 再在其中加入source file

簡單測試:
在DOS下運行gcc 若收到 no input files 即表示compiler 工作常
運行make 收到 *** no targets specified and no makefile found. Stop 即make工作常
試在eclipse 中做hello world project 無error即可

安裝MinGW5後令DEV-CPP出問題, 解決方法見前一個post

No comments: