Eclipse上安装CDT插件

来源:互联网 发布:查询某一列重复的数据 编辑:程序博客网 时间:2024/05/22 16:39

之前一直将eclipse作为Java的集成开发环境来使用,最近在学习C++,发现Eclipse可通过安装CDT(C/C++ Development Tooling插件支持C++的开发,于是昨天按照网上的教程在eclipse上安装CDT插件和MinGW(Minimalist GNU on Windows),安装CDT过程中遇到了几个问题。

1、首先是所安装的CDT版本要与eclipse版本相匹配,eclipse版本可在eclipse根目录下的.eclipseproduct文件里查找,最后的数字就是版本号,我电脑上安装的是eclipse4.2.0,再去http://www.eclipse.org/cdt/ 上下载相应的CDT

2、在eclipse 里选择 help->Install New Software,点击Add…,Name里直接输入CDT,Location里复制地址,点击OK。等了一会儿,出现两个安装项CDT Main Features 和CDT Optional Features,选择 select all->Next。然后出现了报错

Cannot complete the install because one or more required items could not be found.
  Software being installed: C/C++ Remote Launch 6.0.0.201109151620 (org.eclipse.cdt.launch.remote.feature.group 6.0.0.201109151620)
  Missing requirement: C/C++ Remote Debug Launcher 2.3.0.201109151620 (org.eclipse.cdt.launch.remote 2.3.0.201109151620) requires 'bundle org.eclipse.rse.ui [3.0.0,4.0.0)' but it could not be found
  Cannot satisfy dependency:
    From: C/C++ Remote Launch 6.0.0.201109151620 (org.eclipse.cdt.launch.remote.feature.group 6.0.0.201109151620)
    To: org.eclipse.cdt.launch.remote [2.3.0.201109151620]

然后按照 博客 http://blog.csdn.net/gavinr/article/details/7242728里的解决方法解决了这个问题。

3、比较典型的“Launch failed,Binary not found”问题,解决方法是:

a、先点编译按钮(小锤子)再点运行按钮(播放);

b、Run->Run Configurations,选择“Enable auto build”。

0 0