eclipse安装C/C++插件cdt

下载cdt解压到插件目录后仍然提示错误: Cannot run program "gcc": ?????????¨?

网上找了许久,试n种办法均不成。

最后,还是用eclipse自己help -> New and insall software... -> Available Software Sites 在列表里找有没有http://download.eclipse.org/tools/cdt/releases/helios 如果没有就add,有就打勾给取个名cdt。然后在work with:type or select a site那选刚才取名的cdt。下面就是等,然后下一步,再很久的等,呵呵,下载很慢。不过装好后就搞定上面的错误了。

另外安装MinGW,直接下载exe的安装即可。(这个mingw-get-inst-20110316,360报有木马,只能下mingw-get-inst-20100831.exe)
http://sourceforge.net/projects/mingw/files/

MinGW安装比较慢,因为是在线安装,需要远程下载依赖的库文件。默认安装在C:\MinGW下。 安装完成后需要将C:\MinGW\bin;加到Path环境变量最前面。
安装完成后在cmd下输入gcc -v,看下输出的是什么吧。

在eclipse第一次运行自己写的程序的时候可能出现报错信息:launch failed Binary not found。这是因为没有指定编译器信息。

    解决办法是:

   Window->Preferences->C/C++->New CDT project wizard->Makefile Project
找到 Binary Parser 取消 Elf Parser 改选 PE Windows Parser。重启eclipse,重新建立工程项目,运行的时候会出来binarys节点,它自己可以找到执行文件。

=========================================

Eclipse 3.3版的需要用cdt4(cdt4.03)。下载后,安照说明安装:

To use this zip file, in the menu Help->SoftwareUpdates->Find and Install..., select Search for new features to install, click New Archived Site..., and point at the zip file. The Update Manager will start up and you can select the features you want to install. You will at nead require the C/C++ Development Tooling feature which is the CDT runtime.

更多版本的cdt下载:http://download.eclipse.org/tools/cdt/builds/

原文链接: https://www.cnblogs.com/dkblog/archive/2011/03/01/1980645.html

欢迎关注

微信关注下方公众号,第一时间获取干货硬货;公众号内回复【pdf】免费获取数百本计算机经典书籍

    eclipse安装C/C++插件cdt

原创文章受到原创版权保护。转载请注明出处:https://www.ccppcoding.com/archives/21703

非原创文章文中已经注明原地址,如有侵权,联系删除

关注公众号【高性能架构探索】,第一时间获取最新文章

转载文章受原作者版权保护。转载请注明原作者出处!

(0)
上一篇 2023年2月7日 下午11:39
下一篇 2023年2月7日 下午11:41

相关推荐