CMake错误No CMAKE_CXX_COMPILER could be found.

No CMAKE_CXX_COMPILER could be found.

Tell CMake where to find the compiler by setting either the environment
variable “CXX” or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.

解决方法:

sudo apt-get update
sudo apt-get install -y build-essential
 

你可能感兴趣的:(C++学习笔记)