在 Eclipse CDT 中将项目类型从“可执行”更改为“静态库”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7445429/
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 17:00:27  来源:igfitidea点击:

Changing Project Type from "Executable" to "Static Library" in Eclipse CDT

eclipseeclipse-cdt

提问by JonnyB

Is there a way in the Eclipse CDT gui to change a project type after you have created it? I initially created a new C project in CDT as an executable on error. I would like to convert this project to a static library. Any thoughts?

在 Eclipse CDT gui 中有没有办法在创建项目类型后更改项目类型?我最初在 CDT 中创建了一个新的 C 项目作为错误的可执行文件。我想将此项目转换为静态库。有什么想法吗?

回答by dbrank0

You need to go to project properties -> C/C++ Build -> Settings -> Build Artifact Tab. There you can change the artifact type to static or shared library.

您需要转到项目属性 -> C/C++ Build -> Settings -> Build Artifact Tab。在那里您可以将工件类型更改为静态或共享库。