Combining static libraries

后端 未结 3 1743
[愿得一人]
[愿得一人] 2020-12-13 07:44

Suppose I have three C static libraries say libColor.a which depends on *libRGB.*a which in turn depends on libPixel.a . The library l

3条回答
  •  悲哀的现实
    2020-12-13 08:09

    A static library is not much more than an archive of some object files (.o). What you can do is extract all the objects in the two libraries (using "ar x") and then use "ar" to link them together in a new library.

提交回复
热议问题