【发布时间】:2020-08-17 17:36:20
【问题描述】:
我刚刚开始使用 C++ 和 CLion IDE。在观看了一段展示如何开始使用 CLion 的 YouTube 视频后,我收到了这个错误。我所做的只是尝试将 GCC 添加到 CLion 作为 C++ 的编译器。什么都没有。
我有 GCC 版本 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)
我只在 HTML CSS 和 JS 上编程了大约 3 个月,所以这个错误在我脑海中挥之不去。任何帮助将不胜感激!
以下是我的错误和截图链接
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:2 (project):
The CMAKE_CXX_COMPILER:
GCC
is not a full path and was not found in the PATH.
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.
-- Configuring incomplete, errors occurred!
See also "/home/dominic/CLionProjects/untitled1/cmake-build-debug/CMakeFiles/CMakeOutput.log".
See also "/home/dominic/CLionProjects/untitled1/cmake-build-debug/CMakeFiles/CMakeError.log".
[Failed to reload]
【问题讨论】:
-
很可能你没有安装
g++包。 -
你能展示你的 CMakelist 吗?
-
@FWeidinger 我添加了另一个截图
标签: c++ compiler-errors ide clion jetbrains-ide