https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108210
Bug ID: 108210 Summary: error: 'mutex' does not name a type; did you mean 'minutes'? for x86_64-w64-mingw32 target with win32 thread model Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: unlvsur at live dot com Target Milestone: --- /home/cqwrteur/toolchains_build/gcc/libstdc++-v3/src/c++20/tzdb.cc:565:5: error: 'mutex' does not name a type; did you mean 'minutes'? 565 | mutex infos_mutex; | ^~~~~ | minutes Win32 thread model does not provide mutex, lock_guard, and other threading mechanism. However. this can be implemented easily with win32 CriticalSection API. https://github.com/cppfastio/fast_io/blob/master/include/fast_io_hosted/threads/mutex/win32_critical_section.h