linux查看g++版本不成功,但是显示已安装g++。
-
在进行colcon build时,显示
CMake Error at CMakeLists.txt:2 (project):
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.然后查看gcc和 g++是否安装,gcc成功安装切版本为9.5,而已经安装了g++,但是无法查看g++版本
![错误]( 图片地址) -
@1685256511 试一下
sudo apt install --reinstall gcc g++