Linked Questions
42 questions linked to/from How to merge two "ar" static libraries into one?
2 votes
1 answer
1k views
How to create one static library from several others static libraries in C on Linux? [duplicate]
For example, we have three following libraries: 1.1.......................lib_A.a 1.2.......................lib_B.a 1.3.......................lib_C.a Now I want to create one library which ...
1 vote
1 answer
783 views
How to make a static lib based on other static libs using GCC? [duplicate]
I want to make a static library called libXYZ.a using some existing static libraries: libX.a, libY.a, libZ.a and some object files. The command line I used to build the static library libXYZ.a is: ld ...
0 votes
1 answer
310 views
archive of archive files [duplicate]
Possible Duplicate: How to merge two “ar” static libraries into one I have multiple archive file as below folder1/libfolder1.a folder2/libfolder2.a folder3/libfolder3.a all these ...
65 votes
9 answers
53k views
Combining several static libraries into one using CMake
I have a very similar problem to one described on the cmake mailing list where we have a project dependent on many static libraries (all built from source in individual submodules, each with their own ...
51 votes
4 answers
24k views
Combine static libraries on Apple
I tried the approach in this question, but it seems the linux version of ar is not the same as the mac version since I failed to combine the object files again. What I basically want to do is is ...
15 votes
3 answers
20k views
Combining static libraries
Suppose I have three C static libraries say libColor.a which depends on *libRGB.*a which in turn depends on libPixel.a . The library libColor.a is said to depend on library libRGB.a since there are ...
9 votes
1 answer
11k views
How to merge two windows vc static library into one
I am having a two static library a.lib and b.lib(of C language) which is generated using VC6 (Visual studio 6.0) . I want to merge these two libs into one static lib c.lib. How to do this in CLI ...
1 vote
2 answers
3k views
How to create a static library which includes another static library
I have a C++ project called testlib.pro (using Qtcreator) which will create a static library libtest.a. The project is also included staticlib.a (example) and staticlib1.a. i.e using someother static ...
4 votes
2 answers
5k views
Link static library against another static library
I am trying to link a static library [1] into another static library [2] with scons. Unfortunately the emitted call to "ar" never contains any path to library [1]. According to this post How to ...
1 vote
2 answers
6k views
How to "combine" two static libraries?
so I know that you can't depend a static library to another one but i was wondering if there is something that lets me combine them together. I am trying to setup a game engine project file in vstudio ...
2 votes
1 answer
3k views
libtool: convert/extract la to a
Is it possible to convert or maybe extract a file from .la library to .a? I've a project where I have my application linked statically against all libraries, but some of them are generated with ...
2 votes
2 answers
2k views
Linking an archive to an archive
With GCC on Linux, is it possible to link a .a into another .a and then only link the resultant .a to my application? Or must my application know of the dependence between one archive and another and ...
2 votes
1 answer
2k views
TensorFlow static C API library - how to link with 10 sub-dependencies?
I am trying to link with static C API version of the TensorFlow library. I built the static library using the following commands: // get the sources git clone https://github.com/tensorflow/tensorflow....
3 votes
1 answer
3k views
Android : merging static libraries into single one
I use Android NDK r8 to generate multiple static libraries with include $(BUILD_STATIC_LIBRARY) and I successfully get : lib1.a, lib2.a, lib3.a, etc. Now I would like to merge these static libraries ...
3 votes
0 answers
3k views
Trying to merge two static libraries
I have the problem that I want to have a static library of my code because I use the code a lot. It's c++ (otherwise a shared would be an other choice). But that code depends on other static libs. Due ...