D
D
DVoropaev2019-04-17 19:54:05
linux
DVoropaev, 2019-04-17 19:54:05

Why are static libraries needed in linux?

gcc allows you to create static libraries and then link them at compile time.
The question is, why are static libraries needed and in what cases should they be used?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2019-04-17
@DVoropaev

When a program is linked with dynamic libraries, the executable file will not run if the dynamic libraries it needs are not installed on the system or are not nearby. And a statically linked program is one executable file that will definitely work everywhere (if the ABI is suitable in the system, of course).
The first link in Google for "static libraries".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question