当项目导入到 eclipse 时,.cpp 文件将转换为 .cc 文件

发布于 2024-12-21 00:22:36 字数 193 浏览 7 评论 0原文

我想在 Eclipse 中打开 autodock 源代码。因此,我使用“Makefile Project with Existing Code”选项导入源代码。

原始源文件的扩展名为 .cpp。但导入源代码后,所有 cpp 文件都更改为 .cc 扩展名。

如何导入源并保持相同的文件扩展名?我正在使用 Eclipse Indigo CDT。

I want to open the autodock source code in Eclipse. So I imported the source using the "Makefile Project with Existing Code" option.

The original source had files of .cpp extension. But after importing the source all the cpp files are changed to .cc extension.

How do I import the source and keep the same file extension? I'm using Eclipse Indigo CDT.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

孤千羽 2024-12-28 00:22:36

我想通了:) 首先创建一个新的空项目 New->Create C Project。然后在项目资源管理器中右键单击新项目,单击导入并选择文件系统。最后给出包含源文件的文件夹的路径

I figured it out :) First Create a new empty project New->Create C Project. Then right click on the new project in the project explorer, click import and select file system. Finally give the path to folder which contain the source files

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