如何告诉我的 Eclipse Helios CTD 项目是 C/C++一?

发布于 2024-11-01 05:02:24 字数 295 浏览 1 评论 0原文

显然,我的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

遇到 2024-11-08 05:02:24

我发现了问题的原因:选择了错误的 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文