Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
LordOfDragons opened this issue Feb 12, 2022 · 1 comment
Open

Comments

@LordOfDragons
Copy link

/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?

@Jamaika1
Copy link

Jamaika1 commented May 1, 2022

Test my library
https://github.com/Jamaika1/mingw_std_threads

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants