Closed XM31337 closed 1 year ago
You have very old OS and C++ compiler. See message as follows in your log:
This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
When I do "make" an error occurs, how can I fix it? centos 7, updated
[ 20%] Building CXX object src/CMakeFiles/libverlihub.dir/cmaxminddb.cpp.o [ 21%] Building CXX object src/CMakeFiles/libverlihub.dir/cinfoserver.cpp.o In file included from /usr/include/c++/4.8.2/thread:35:0, from /home/dcpp/verlihub-1.4.0.0/src/cinfoserver.cpp:37: /usr/include/c++/4.8.2/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
error This file requires compiler and library support for the \
^ /home/dcpp/verlihub-1.4.0.0/src/cinfoserver.cpp: In member function ‘void nVerliHub::cInfoServer::SystemInfo(std::ostream&)’: /home/dcpp/verlihub-1.4.0.0/src/cinfoserver.cpp:401:36: error: ‘std::thread’ has not been declared const unsigned int num_cpu = std::thread::hardware_concurrency(); // note: c++11 ^ make[2]: [src/CMakeFiles/libverlihub.dir/cinfoserver.cpp.o] Error 1 make[1]: [src/CMakeFiles/libverlihub.dir/all] Error 2 make: *** [all] Error 2