On 2022-10-31 09:18, Eric Botcazou wrote:

hello Eric!

This also changes libstdc++ to pass -D_WIN32_WINNT=0x0600 but only when the switch --enable-libstdcxx-threads is passed, which means that C++11 threads are still disabled by default *unless* MinGW-W64 itself is configured for Windows Vista/Server 2008 or later by default (this has been the case in
the development version since end of 2020, for earlier versions you can
configure it --with-default-win32-winnt=0x0600 to get the same effect).

I have faced with "#error Timed lock primitives are not supported on Windows targets" and I'm not sure I understood the reason correctly.

as far as I understand, the definition for `_GTHREAD_USE_MUTEX_TIMEDLOCK` comes from libstdc++/configure as a result of some test.

why did I faced with this error? what should I do to avoid this?



you can configure it --with-default-win32-winnt=0x0600 to get the same effect

are you talking about the `--with-default-win32-winnt=` option used on MinGW-builds script?




best!

Reply via email to