-
Notifications
You must be signed in to change notification settings - Fork 763
Description
I am new to FHE and I would really appreciate if you can help me with the errors I am noticing when building HElib.
Environment : Windows 10
Compiler : MinGW 6.3.0
GMP: 6.1.2
NTL : 11.3.0
Makefile :
CFLAGS = -g -O2 -std=c++11 -pthread -DFHE_THREADS -DFHE_BOOT_THREADS -fmax-errors=2 -I C:/Users/sr/Downloads/WinNTL-11_3_0/WinNTL-11_3_0/include -L C:/Users/sr/Downloads/WinNTL-11_3_0/WinNTL-11_3_0/src/Debug -l NTL_static_lib -I C:/MinGW/msys/1.0/include -L C:/MinGW/msys/1.0/lib -l libgmp
Error :
C:\git\HElib\src>make
HElib requires NTL version 10.0.0 or higher, see http://shoup.net/ntl
If you get compilation errors, try to add/remove -std=c++11 in Makefile
g++ -g -O2 -std=c++11 -pthread -DFHE_THREADS -DFHE_BOOT_THREADS -fmax-errors=2 -I C:/Users/sr/Downloads/WinNTL-11_3_0/WinNTL-11_3_0/include -L C:/Users/sr/Downloads/WinNTL-11_3_0/WinNTL-11_3_0/src/Debug -l NTL_static_lib -I C:/MinGW/msys/1.0/include -L C:/MinGW/msys/1.0/lib -l libgmp -c NumbTh.cpp
In file included from C:/Users/sr/Downloads/WinNTL-11_3_0/WinNTL-11_3_0/include/NTL/SmartPtr.h:7:0,
from C:/Users/sr/Downloads/WinNTL-11_3_0/WinNTL-11_3_0/include/NTL/ZZ.h:21,
from NumbTh.h:32,
from NumbTh.cpp:12:
C:/Users/sr/Downloads/WinNTL-11_3_0/WinNTL-11_3_0/include/NTL/thread.h:127:12: error: 'mutex' in namespace 'std' does not name a type
NTL_SNS mutex mtx;
^~~~~
In file included from C:/Users/sr/Downloads/WinNTL-11_3_0/WinNTL-11_3_0/include/NTL/ZZ.h:19:0,
from NumbTh.h:32,
from NumbTh.cpp:12:
C:/Users/sr/Downloads/WinNTL-11_3_0/WinNTL-11_3_0/include/NTL/tools.h:37:17: error: 'mutex' is not a member of 'std'
#define NTL_SNS std ::
^
C:/Users/sr/Downloads/WinNTL-11_3_0/WinNTL-11_3_0/include/NTL/thread.h:140:24: note: in expansion of macro 'NTL_SNS'
NTL_SNS unique_lock<NTL_SNS mutex> lck;
^~~~~~~
compilation terminated due to -fmax-errors=2.
make: *** [NumbTh.o] Error 1