[root@VM-0-7-centos build]# make
[ 5%] Building CXX object src/CMakeFiles/laszip.dir/arithmeticdecoder.cpp.o
c++: error: unrecognized command line option ‘-std=c++14’
make[2]: *** [src/CMakeFiles/laszip.dir/arithmeticdecoder.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/laszip.dir/all] Error 2
make: *** [all] Error 2
[root@VM-0-7-centos build]# g++ --version
g++ (GCC) 5.2.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
搜索都说是因为-std=c++14需要g++5.2
, 可是我升级了g++
, 已经是g++ (GCC) 5.2.0
还是报错
请问如何解决呢?
感觉 make 没认你的 g++ 呢……
要不你
cmake -DCMAKE_CXX_COMPILER=/usr/local/gcc/bin/g++ .
指定一下吧。