Skip to content

error: ‘shared_lock’ has not been declared in ‘std’ #87

@LordOfDragons

Description

@LordOfDragons
/sources/extern/openxr/build/OpenXR-SDK-release-1.0.22/mingw_stdthreads/mingw.shared_mutex.h:306:12: error: ‘shared_lock’ has not been declared in ‘std’
  306 | using std::shared_lock;

I tried upgrading mingw (version 10) but it's not working.

The offending line is mingw_stdthreads/mingw.shared_mutex.h:306

#if __cplusplus >= 201402L
using std::shared_lock;
#else

This means c++14 or higher is used but std::shared_lock does not exist. What can be done to fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions