As discussed here , a static variable is stored in the .BSS or .DATA segment.
Where is this memory stored if the static variable is inside a function that is in a dynamically linked library? Is storage for this variable stored in the .BSS or .DATA segment of the binding process during the connection?
c ++ static memory shared-libraries
nagul
source share