title: Static member variable for class that is dynamically loaded
body: <p>If I were to load up some symbols using something like <code>dlopen</code> in C++ while other classes in that translation unit had <code>static</code> member variables what exactly is the behavior of those static member variables. Do they get initialized or no because the library isn't really loaded just the symbols that you looked up (which I'm thinking the latter is not true because if the symbol you looked up needs those they need to be loaded too)?</p>