eclipse在linux(ubuntu)cdt插件:导入了makefile 文件系统之后出现program files not specified
来源:互联网 发布:java point类 编辑:程序博客网 时间:2024/04/28 11:50
我在eclipse上导入了自己的一个含有makefile文件系统。按照这个网页来的:http://www.tuicool.com/articles/2QryUv
- File -> New -> Makefile Project with Existing Code
- 选择源码目录,语言选择C语言。如果是 Linux 环境,则选中 Linux GCC,Mac 环境则选择 MacOSX GCC,Windows 下用 Eclipse 则可以选择 MinGW GCC。
- Project -> Make Target -> Create,建立 all 和 clean 两个 Targets。
- 在 Make Target 的 View 里面选择刚刚建立的项目的 all 来构建项目
- 构建结束后,Run -> Debug As -> Local C/C++ Application -> gdb/mi,调试选项可以在 Debug Configuration 中设置。
网上这类方法一般是让eclipse自己产生makefile:右键点击工程Properties->C/C++ Builds 里勾选Generate Makefiles automatically。
这不符合我的要求,而且eclipse自己产生makefile之后,运行还是有问题program files not specified:提示找不到程序。如果这时候点击run configuration的话, search project 就什么都没有(当然这是因为make的时候就什么都没做)
多次重新导入,clean之后build。eclipse还是不用我的makefile. 还是找不到.o文件。
最后终于解决了问题:
用另外一种方法导入: 新建一个c++ stdand projecct(empty project)。 然后将自己的文件和makefile都拷贝进去。build成功了。这是因为这个c++ stdand projecct本来就要求自己写makefile。
0 0
- eclipse在linux(ubuntu)cdt插件:导入了makefile 文件系统之后出现program files not specified
- 在Eclipse中运行C++程序出现"Launch failed. Binary not foud"和"Program file not Specified"的问题
- 在Eclipse中运行C++程序出现"Launch failed. Binary not foud"和"Program file not Specified"的问题
- 在Eclipse中运行C++程序出现"Launch failed. Binary not foud"和"Program file not Specified"的问题
- 在eclipse中使用CDT插件导入外部静态库
- Linux Eclipse CDT 出现 launch failed Binary not found
- uBuntu Eclipse安装CDT插件
- Eclipse 插件 CDT 使用感想和makefile
- cocos2d在运行java eclipse程序时出现 Error: could not open c:\program Files\Java\jre6\lib\amd64\jvm.cfg
- CDT 出现 program is not a recognized executable
- eclipse cdt Program "make" not found in PATH
- eclipse cdt Program "make" not found in PATH
- Eclipse + CDT Program "gcc" not found in PATH
- eclipse cdt Program "make" not found in PATH
- 如何在eclipse cdt环境下 导入一个含makefile的工程文件
- Eclipse CDT Makefile Project, or NOT Makefile Project
- 出现java.lang.ClassNotFoundException:,在Eclipse导入已有的文件系统
- Eclipse CDT 导入 Makefile 构建的 C/C++ 工程
- JUI--DWZ笔记一URL变量替换
- 11.认识与学习bash
- CentOS 6.4上安装Oracle 11.2
- Android编译系统简要介绍和学习计划
- MATLAB数据降维工具箱drtoolbox介绍
- eclipse在linux(ubuntu)cdt插件:导入了makefile 文件系统之后出现program files not specified
- Win7下搭建Python开发环境[py+pyqt4+Eric4]
- 优化app小建议_lint测试发出的warning
- 巧用CSS解决GridView样式边框的问题
- 游戏服务器之中心服务器
- 如何分析解决Android ANR
- bo中的连接管理
- poj_3020
- java.lang.IllegalStateException: The content of the adapter has changed but