You write two applications using same library, you end up in sudden crash in the library in one application but not another. You expect your compiler might give you a hint lead to that failure but it doesn't.
Check out the following topics from C++ FAQ Lite:
Check out the following topics from C++ FAQ Lite:
- [10.12] What's the "static initialization order fiasco"?
- [10.13] How do I prevent the "static initialization order fiasco"?
- [10.15] How do I prevent the "static initialization order fiasco" for my static data members?
- [10.16] Do I need to worry about the "static initialization order fiasco" for variables of built-in/intrinsic types?