c++: error: unrecognized command line option ‘-std=c++14’

image.png

[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还是报错

请问如何解决呢?

阅读 8.2k
1 个回答
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题