解决CMake错误No CMAKE_CXX_COMPILER c

2019-10-19  本文已影响0人  我说的这句话是谎话

在 WSL 中用了

cmake .

命令,
出现问题:

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
上一篇下一篇

猜你喜欢

热点阅读