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

No template named 'unique_lock‘ in namespace 'std', /native/src/seal/util/locks.h #674

Closed
vesperlou opened this issue Nov 18, 2023 · 1 comment

Comments

@vesperlou
Copy link

Hi, I tried to install SEAL version 3.6 following EVA's guidelines:

git clone -b v3.6.4 https://github.com/microsoft/SEAL.git
cd SEAL
cmake -DSEAL_THROW_ON_TRANSPARENT_CIPHERTEXT=OFF .
make -j
sudo make install

and encountered the following error

/SEAL/native/src/seal/util/locks.h:17:33: error: no template named 'unique_lock' in namespace 'std'; did you mean 'unique_copy'?
using WriterLock = std::unique_lock<std::shared_mutex>;

I fixed it by adding include <mutex> in locks.h. Is it the correct solution or did I mistake something elsewhere?

@kimlaine
Copy link
Contributor

This is the correct way. It's already fixed in the new version of SEAL.

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