Let\'s say I have library (A)
implementing the singleton pattern (it has a static variable in its implementation).
(A)
library is compiled as a
static linked library, and static variables are not related.
A static variable, is not visible outside the current compilation scope (no symbol name is created in the .o file, so no other .o files can find that variable via the symbol name).
This means that the variable
static int foo; can exist in every compilation scope, and each one will be uniqe