C++ static variable in .lib does not initialize
I had a similar problem and solved it by setting the lib project as a dependency of the main app project and then setting ‘Link Library Dependencies’ and ‘Use Library Dependency Inputs’ to Yes for the main project. Update: Recently I discovered that Visual Studio 2015 now supports a /WHOLEARCHIVE linker flag. I can’t find … Read more