配置Clion
安装gcc、g++、make
Ubuntu中用到的编译工具是gcc©,g++(C++),make(连接)。因此只需安装对应的工具包即可。Ubuntu下使用命令安装这些包:
(1)安装gcc
sudo apt install gcc
(2)安装g++
sudo apt install g++
(3)安装make
sudo apt install make
附录
[0/1] Re-running CMake...
-- Found glog (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libglog.so)
-- Configuring done -- Generating done -- Build files have been written to: /home/fairlee/CLionProjects/hw_day4/cmake-build-debug ninja: error: manifest 'build.ninja' still dirty after 100 tries
尽量不使用ninja编译工具,采用cmake编译工具。