简体   繁体   English

如何将C ++ REST SDK编译到Ubuntu Linux上的静态库中?

[英]How to compile C++ REST SDK into a static library on Ubuntu Linux?

I want to compile C++ REST SDK ( https://casablanca.codeplex.com/ ) into a static library on Ubuntu. 我想将C ++ REST SDK( https://casablanca.codeplex.com/ )编译到Ubuntu上的静态库中。 Has anyone done it? 有人做过吗? How to do it? 怎么做? Their documentation only shows how to create a dynamic library for Ubuntu but no static. 他们的文档仅显示如何为Ubuntu创建动态库,但没有静态。

Thanks! 谢谢!

要创建静态库,请按照相同的说明创建共享库,但将"-DBUILD_SHARED_LIBS=0"附加到cmake配置行。

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

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