1

I have one static library named libplatform.a, and two static libraries liba.a and libb.a are built upon libplatform.a. Now I want to create a program named foo, which will be built together with all the three static libraries.

So how many copies of libplatform.a will be kept in the final program foo?

1 Answer 1

1

So how many copies of libplatform.a will be kept in the final program foo?

Not more than one, likely less than one. Only one copy of some files in libplatform.a will be included in the final executable. Here is an explanation of how the linker works.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.