Static linking libgcc on Windows DLL
问题 I am writing a Windows DLL in C++. This library has only C interface and uses only standard Windows libraries which also have C interface. Therefore it seems me safe to statically link all C++ libraries into the library because I am not dependent on C++ ABI version when using C interfaces only. Unfortunately when I compile my library with -static-stdc++ -static-libgcc , my library stops handling exceptions and when some exception is thrown, the DLL calls its statically linked _Unwind