向 Eclipse 项目添加 C/C++ 特性

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1323107/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 13:58:31  来源:igfitidea点击:

Adding a C/C++ nature to an Eclipse project

ceclipseproject

提问by Alex Marshall

Does anybody know how to add a C/C++ project nature to an Eclipse project through the UI ? I'm importing a project and working with legacy code that was originally started in Visual Studio 4 and I'd really like to be able to make as much use of Eclipse's helpers as possible.

有人知道如何通过 UI 将 C/C++ 项目性质添加到 Eclipse 项目中吗?我正在导入一个项目并使用最初在 Visual Studio 4 中启动的遗留代码,我真的希望能够尽可能多地使用 Eclipse 的帮助程序。

回答by Glen

Assuming you've got the CDT plugin installed

假设你已经安装了 CDT 插件

Right-click on the project.

右键单击项目。

Select: New -> Other

选择:新建 -> 其他

Under C/C++, select "Convert to a C/C++ project"

在 C/C++ 下,选择“转换为 C/C++ 项目”

回答by Mike Kucera

Create a new C project using the existing source code.

使用现有的源代码创建一个新的 C 项目。