简体   繁体   English

编译为静态和动态库

[英]Compile as static and dynamic library

Is it possible to create two configurations for a Visual Studio Project where one configuration compiles the code into a static, the other one into a dynamic library? 是否可以为Visual Studio项目创建两种配置,其中一种配置将代码编译成静态代码,另一种代码编译成动态库?

If yes, how is it done? 如果是,该怎么做?

Yes, just create a new configuration in the Configuration Editor for all platforms, and name it accordingly. 是的,只需在“配置编辑器”中为所有平台创建一个新配置,然后相应地命名即可。 Then set that configuration up to build a static library manually. 然后设置该配置以手动构建静态库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM