Compile error: Cannot find a C++ compiler that supports

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++

原文链接: https://www.cnblogs.com/exmyth/p/13665989.html

欢迎关注

微信关注下方公众号,第一时间获取干货硬货;公众号内回复【pdf】免费获取数百本计算机经典书籍

    Compile error: Cannot find a C++ compiler that supports

原创文章受到原创版权保护。转载请注明出处:https://www.ccppcoding.com/archives/202758

非原创文章文中已经注明原地址,如有侵权,联系删除

关注公众号【高性能架构探索】,第一时间获取最新文章

转载文章受原作者版权保护。转载请注明原作者出处!

(0)
上一篇 2023年2月12日 下午9:15
下一篇 2023年2月12日 下午9:15

相关推荐