A
A
Anton2017-04-06 12:39:11
linux
Anton, 2017-04-06 12:39:11

Why is the library being linked?

There is a library for example "Base" using pthread, and a program that links it to itself, for example "Program".
If you build "Base" statically, then "Program" will be built, and if you build "Base" dynamically, then "Program" requires "pthread" to be linked.
Why is it necessary to link pthread to "Program" in one case and not in the other?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question