问题描述
我不能构建我的项目。我在Eclipse Helios中创建了一个新的CDT项目,并告诉它使用现有的源和makefile, ,在包和项目视图中正确显示。 项目菜单中的构建全部和构建项目都变灰,因此无法构建项目。 自动构建未选中。在项目创建过程中,我告诉向导使用Linux gcc(1)工具链。我无法在Project-> Properties或Window-> Preferences中找到启用Build Project功能的任何内容。窗口 - >首选项 - >构建显示只显示一个标签为错误解析器的选项卡。
如何启用构建项目命令?
我发现我的问题的原因:选择错误的新建项目向导。我选择了Makefile Project with Existing Code向导,因为源和makefile已经存在。我应该选择C Project向导,并告诉它不要创建一个makefile。后者的结果是项目菜单的Build Project条目不会变灰。
显然,Makefile Project with Existing code 是一个通用向导,而不是一个特定于C / C ++项目的向导。
I can't build my project.
I created a new CDT project in Eclipse Helios and told it to use existing source and makefile -- both, of which, appear correctly in the Package and Project views. The "Project" menu has both "Build All" and "Build Project" grayed-out, however, so it's impossible to build the project. "Build Automatically" is unchecked. During project creation, I told the wizard to use the Linux gcc(1) toolchain. I've been unable to find anything under Project->Properties or Window->Preferences that enables the "Build Project" feature. The Window->Preferences->Build display shows only one tab labeled "Error Parsers".
How can I enable the "Build Project" command?
I've discovered the cause of my problem: selecting the wrong "New Project" wizard. I selected the "Makefile Project with Existing Code" wizard because the source and makefile already existed. I should have selected the "C Project" wizard and told it not to create a makefile. The result of doing the latter is that the "Build Project" entry of the "Project" menu is not grayed-out.
Apparently, the "Makefile Project with Existing code" is a generic wizard rather than one specific to C/C++ projects.
这篇关于为什么是“构建项目”即使makefile和源存在,Eclipse Helios CDT中也出现灰色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!