- published: 29 Mar 2015
- views: 11822
In computer science, a static library or statically-linked library is a set of routines, external functions and variables which are resolved in a caller at compile-time and copied into a target application by a compiler, linker, or binder, producing an object file and a stand-alone executable. This executable and the process of compiling it are both known as a static build of the program. Historically, libraries could only be static. Static libraries are either merged with other static libraries and object files during building/linking to form a single executable, or they may be loaded at run-time into the address space of the loaded executable at a static memory offset determined at compile-time/link-time.
There are several advantages to statically linking libraries with an executable instead of dynamically linking them. The most significant is that the application can be certain that all its libraries are present and that they are the correct version. This avoids dependency problems, known colloquially as DLL Hell or more generally dependency hell. Static linking can also allow the application to be contained in a single executable file, simplifying distribution and installation.
There may be times in my day when I feel down
And I may walk around like a floppy old hound
There are people in my life we don't get along
But I know a time when nothin' goes wrong
And I'm always up when I get up in the morning
I'm always up at the end of the night
The morning smiles it's sun on me
I look over and it's you I see
And I'm always up when I get up in the morning
I'm up in the morning
My life may get hard on a certain week
And the people that I work with we may not speak
I might get drunk and stay out all night
Cause in the morning I know you won't be up tight