When you try to connect the thread or mutex library, the compilation fails.
The error is in the functional library of the C ++ standard.
When it is connected, the program crashes.
The compiler complains about this code:
astatic_assert(_Varargs::value ? sizeof...(_BoundArgs) >= _Arity::value + 1 : sizeof...(_BoundArgs) == _Arity::value + 1, "Wrong number of arguments for pointer-to-member"); }; 
#include<thread>? - Harry