如何告诉我的 Eclipse Helios CTD 项目是 C/C++一?
显然,我的 Eclipse CDT 不知道我的 C/C++ 项目是 C/C++ 项目。
我使用 CDT 向导从现有源在 Eclipse Helios 中创建了一个 C/C++ 项目。选择项目上下文菜单的“属性”条目(从“项目视图”)会出现一个弹出窗口,其中有“Builders”条目,但没有“C/C++ Build”条目;因此,我无法构建该项目。就好像 CDT 不知道该项目是 C/C++ 项目,尽管我是这么告诉向导的。上述弹出窗口的“Resources”条目显示资源类型为“Project”。
我如何告诉 CDT 该项目是 C/C++ 项目?
Apparently, my Eclipse CDT doesn't know that my C/C++ project is a C/C++ project.
I created a C/C++ project in my Eclipse Helios from existing sources using the CDT wizard. Selecting the "Properties" entry of the context menu of the project (from the Project View) results in a pop-up window that has a "Builders" entry but no "C/C++ Build" entry; consequently, I'm unable to build the project. It's as if the CDT doesn't know that the project is a C/C++ one even though that's what I told the wizard. The "Resources" entry of the aforementioned pop-up window says that the type of the resource is "Project".
How can I tell the CDT that the project is a C/C++ one?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我发现了问题的原因:选择了错误的 CDT“新建项目”向导。我选择了“Makefile Project with Existing Code”向导,因为 makefile 和源代码已经存在。我应该选择“C Project”向导并告诉它该项目是一个空的 makefile 项目(细微差别)。
显然,“Makefile Project with Existing Code”向导是一个通用向导——即使从 CDT 角度调用也是如此。
I've discovered the cause of my problem: selecting the wrong CDT "New Project" wizard. I selected the "Makefile Project with Existing Code" wizard because the makefile and source already existed. I should have selected the "C Project" wizard and told it that the project was an empty makefile project (subtle difference).
Apparently, the "Makefile Project with Existing Code" wizard is a generic one -- even if invoked from within the CDT perspective.