eclipse安装C/C++插件cdt
2015-06-16 22:58
531 查看
转自:/article/4868124.html
下载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/
转自:/article/4868124.html
下载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/
相关文章推荐
- Effective C++条款05解读: 了解C++默默编写并调用哪些函数
- 求众数(c语言)
- C语言-判断闰年
- C++中static、const、static const修饰变量作用详解(转)
- PCA人脸识别学习及C语言实现
- [C/CPP系列知识] Type difference of character literals 和 bool in C and C++
- C++中重载/覆盖/隐藏的区别
- C语言笔记之指针的初步认识
- C++下高效率int转成string
- 开始学习C++心得实例(4)
- c++异常处理机制
- 【leetcode c++】19 removeNthFromEnd
- c++容器之vector
- [C/CPP系列知识] C++中extern “C” name mangling -- Name Mangling and extern “C” in C++
- C++ Virtual介绍
- C++ Virtual介绍 分类: C/C++ 2015-06-16 21:36 26人阅读 评论(0) 收藏
- FreeGLUT Tips: Resolve compile error C2664: cannot convert argument 2 from '_TCHAR *[]' to 'char **'
- C语言和Fortran语言的差异
- 迷宫的最短路径 代码(C++)
- 一起talk C栗子吧(第十八回:C语言实例--输出十六进制)