Cc1plus-error-unrecognized-command-line-option-std-c-11 nheqminer_cpu CENTOS 6.8

hi guys,

Can someonee help with this error. I am in CENTOS 6.8

[root@supernovacont nheqminer_cpu]# make -j $(nproc)
Scanning dependencies of target nheqminer_cpu
[  5%] [ 23%] [ 23%] [ 23%] [ 29%] Building CXX object CMakeFiles/nheqminer_cpu.dir/root/nheqminer/nheqminer/arith_uint256.cpp.o
Building CXX object CMakeFiles/nheqminer_cpu.dir/root/nheqminer/nheqminer/api.cpp.o
[ 35%] Building CXX object CMakeFiles/nheqminer_cpu.dir/root/nheqminer/nheqminer/crypto/sha256.cpp.o
[ 41%] cc1plus: error: no se reconoce la opción de línea de comando "-std=c++11"
cc1plus: error: no se reconoce la opción de línea de comando "-std=c++11"
Building CXX object CMakeFiles/nheqminer_cpu.dir/root/nheqminer/nheqminer/amount.cpp.o
[ 47%] Building CXX object CMakeFiles/nheqminer_cpu.dir/root/nheqminer/nheqminer/json/json_spirit_reader.cpp.o
Building CXX object CMakeFiles/nheqminer_cpu.dir/root/nheqminer/nheqminer/json/json_spirit_writer.cpp.o
Building CXX object CMakeFiles/nheqminer_cpu.dir/root/nheqminer/nheqminer/json/json_spirit_value.cpp.o
cc1plus: error: no se reconoce la opción de línea de comando "-std=c++11"
make[2]: *** [CMakeFiles/nheqminer_cpu.dir/root/nheqminer/nheqminer/api.cpp.o] Error 1
make[2]: *** Se espera a que terminen otras tareas....
make[2]: *** [CMakeFiles/nheqminer_cpu.dir/root/nheqminer/nheqminer/arith_uint256.cpp.o] Error 1
make[2]: *** [CMakeFiles/nheqminer_cpu.dir/root/nheqminer/nheqminer/crypto/sha256.cpp.o] Error 1
cc1plus: error: no se reconoce la opción de línea de comando "-std=c++11"cc1plus: error: no se reconoce la opción de línea de comando "-std=c++11"

cc1plus: error: no se reconoce la opción de línea de comando "-std=c++11"
cc1plus: error: no se reconoce la opción de línea de comando "-std=c++11"
make[2]: *** [CMakeFiles/nheqminer_cpu.dir/root/nheqminer/nheqminer/amount.cpp.o] Error 1
make[2]: *** [CMakeFiles/nheqminer_cpu.dir/root/nheqminer/nheqminer/json/json_spirit_reader.cpp.o] Error 1
make[2]: *** [CMakeFiles/nheqminer_cpu.dir/root/nheqminer/nheqminer/json/json_spirit_writer.cpp.o] Error 1
make[2]: *** [CMakeFiles/nheqminer_cpu.dir/root/nheqminer/nheqminer/json/json_spirit_value.cpp.o] Error 1
Building CXX object CMakeFiles/nheqminer_cpu.dir/root/nheqminer/nheqminer/libstratum/ZcashStratum.cpp.o
cc1plus: error: no se reconoce la opción de línea de comando "-std=c++11"
make[2]: *** [CMakeFiles/nheqminer_cpu.dir/root/nheqminer/nheqminer/libstratum/ZcashStratum.cpp.o] Error 1
make[1]: *** [CMakeFiles/nheqminer_cpu.dir/all] Error 2
make: *** [all] Error 2
[root@supernovacont nheqminer_cpu]# g++ --version
g++ (GCC) 4.4.7 20120313 (Red Hat 4.4.7-17)

I’m getting the same error in English, anyone else having trouble with this while compiling?

It is complaining about C++ compiler, not gnu-c++ (g++). You will need to install:

libstdc+±devel-4.x.x
libstdc+±4.x.x

1 Like