A
A
Avery0072015-07-18 11:28:21
C++ / C#
Avery007, 2015-07-18 11:28:21

How to immediately link static libraries to a static library?

There is a static library that uses 3 other static libraries. The problem is that when linking it to the main application, these three libraries must also be linked to it. How to make sure that they are immediately included in it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Don Kaban, 2015-07-18
@donkaban

libtool --mode=link cc -static -o libAB.la
libA.la
libB.la ar -c libAB.a *.o Or ar -rcT libAB.a libA.a libB.a

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question