https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108225
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |WAITING Last reconfirmed| |2023-01-04 --- Comment #7 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- What GCC sources do you use? What does 'gcc -v' output? The error you get is the usual error when trying to include <mutex> for a threading model not supporting C++11 mutexes, which is the case for the Win32 threading model. Btw the code goes to great length to avoid including <windows.h> from the libstdc++ header files (see __GTHREAD_HIDE_WIN32API) so it is definitely not.