On 4 August 2015 at 16:00, Nikolay Vorobyov wrote: > Is this a gcc's bug? I believe this is due to how symbol resolution works in DLLs on Windows, where each DLL has its own copy of the static variable. I don't know how to make it work as required by the C++ standard.