环境:Eclipse + CDT + Mingw
项目类型:C Project-->Makefile project-->Empty Project-->MinGW GCC
错误:
make all
make: *** No rule to make target `all'. Stop.
解决方式:右键项目-->properties-C/C++ Build-->Builder settings
此时可看到Builder Type是不可选的,
且Makefile generation-->Generate makefiles automatically是未选中的
选中Generate makefiles automatically
此时Builder Type变成了可选项,选择internal builder
然后提交
执行项目,如果再出现Launch failed. Binary not found.错误,刷新下项目就好了,或者Project-->Build All
本文介绍如何解决Eclipse CDT环境下使用Makefile进行C/C++项目构建时遇到的“make:***No rule to make target `all'”错误。通过设置项目的构建属性,启用自动生成Makefile的功能,并选择内部构建器,可以有效解决此问题。
793

被折叠的 条评论
为什么被折叠?



