开发者

Convert shared library to static library?

Is it possible to convert a shared library (someL开发者_JS百科ib.so) to a static library? (someLib.a)


No. (At least for ELF shared library). A shared library is a simple object (so stands for shared object). A static library is a collection of objects. In the process of building the shared library you combine several objects and you lose some of the information which would be needed to retrieve them.


YES if you have the source code of the shared library.

NO if you don't have the source code of the shared library.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜