Am 23.03.17 um 17:41 schrieb Barry Schwarz:
> On Thu, 23 Mar 2017 18:23:02 +0200, "Tristan B. Kildaire"
> <
dea...@disroot.org> wrote:
>
>> General question.
>>
>> A static library is one in which the library's code is put into the
>> program's source file and then compiled into a "monolith" executable.
>
> A static library does not have source code. It has object modules.
> They are linked with the programs object modules into a monolithic
> executable which is not affected by any subsequent changes to the
> library.
Maybe it could be mentioned that there is a third kind of a library
especially in the C++ case, the template library, where indeed the
source code is more-or-less copied into the program source. Usually the
program contains in #include for library files from Boos or from the
STL, which is performed by textually inserting the content of the
included file in the source code of the program. A few C libraries also
exist which work in a similar way (using static functions), but this is
mre controversial because for non-template functions this is not necessary.
Christian