[Bug libstdc++/90371] New: gcc with newlib do not support std::mutex, std:: thread

rjiejie at me dot com gcc-bugzilla@gcc.gnu.org
Tue May 7 06:06:00 GMT 2019


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;
}


More information about the Gcc-bugs mailing list