Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question