码迷,mamicode.com
首页 > 编程语言 > 详细

Compile error: Cannot find a C++ compiler that supports both C++11 and the specified C++ flags

时间:2020-09-18 01:02:04      阅读:40      评论:0      收藏:0      [点我收藏+]

标签:ror   log   attempted   pil   tools   apt   ppi   ase   g++   

reno@MyComputer:~/tools/cmake-3.12.4$ ./configure

---------------------------------------------

CMake 3.12.4, Copyright 2000-2018 Kitware, Inc. and Contributors

C compiler on this system is: cc

---------------------------------------------

Error when bootstrapping CMake:

Cannot find a C++ compiler that supports both C++11 and the specified C++ flags.

Please specify one using environment variable CXX.

The C++ flags are "".

They can be changed using the environment variable CXXFLAGS.

See cmake_bootstrap.log for compilers attempted.

---------------------------------------------

Log of errors: /home/reno/tools/cmake-3.12.4/Bootstrap.cmk/cmake_bootstrap.log

---------------------------------------------

解决方案:sudo apt-get install g++

Compile error: Cannot find a C++ compiler that supports both C++11 and the specified C++ flags

标签:ror   log   attempted   pil   tools   apt   ppi   ase   g++   

原文地址:https://www.cnblogs.com/exmyth/p/13665989.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!