1. 启动Eclipse,点击菜单栏上的"Help -> Install New Software..."
2. 打开 Install对话框,点击“Add...”按钮,加了下面的软件源地址,(这里要注意一下你的Eclipse版本,你可以点击Help -> About Eclipse SDK查看得知)
-
对于 Eclipse 3.6 (Helios): 使用
http://download.eclipse.org/tools/cdt/releases/helios
-
对于 Eclipse 3.5 (Galileo): 使用
http://download.eclipse.org/tools/cdt/releases/galileo
点击OK后,你可以看到两个CDT节点:
CDT Main Features 和 CDT Optional Features。点击其扩展小标记,只勾选如下选项:
-
Eclipse C/C++ Development Tools
-
CDT GNU Toolchain Build Support
-
CDT GNU Toolchain Debug Support
-
Eclipse C/C++ Development Platform