在 2021-10-23 22:50, Óscar Fuentes 写道:
But, AFAIK, -mthreads is unnecesary nowadays and mingwthrd is just a
stub. Is this correct?
The comment in 'mingwthrd_mt.c' says so, but `-mthreads` also defines `-D_MT` which isn't otherwise
defined. Some projects have it in their CMakeFiles.txt, however
The gcc documentation for -mthreads says:
-mthreads
Support thread-safe exception handling on MinGW. Programs
that rely on thread-safe exception handling must compile and
link all code with the -mthreads option. When compiling,
-mthreads defines -D_MT;