https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90371
Bug ID: 90371 Summary: gcc with newlib do not support std::mutex, std:: thread Product: gcc Version: 6.3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: rjiejie at me dot com Target Milestone: --- with the following code, it's compiled error with gcc-newlib*: error: ‘mutex’ is not a member of ‘std’ and it's ok in the "gcc-linux*" toolchain, i want to use std:mutex by gcc with newlib like linux platform, how do i configure gcc with newlib to build ? #include <mutex> using namespace std; int func() { std::mutex a; }