Windows下C,C++开发环境搭建指南


https://www.jetbrains.com/clion/

这里博主假设大家已经下载安装并X好Clion了。

https://mirrors.tuna.tsinghua.edu.cn/msys2/distrib/x86_64/进行下载,

下载后的安装包已经改过Pacman包源了,方便快捷,毕竟外网不爬墙,还是挺慢的。

Pacman的一些用法见官方文档 https://www.msys2.org/wiki/Using-packages/ 

这里就不展开细说了。

打开msys2的控制台输入一下命令进行环境安装。

     
xxxxxxxxxx
 
pacman -S mingw-w64-x86_64-gcc
   
pacman -S mingw-w64-x86_64-cmake
pacman -S mingw-w64-x86_64-make
pacman -S mingw-w64-x86_64-pkg-config
   

或者

     
xxxxxxxxxx
   pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake mingw-w64-x86_64-make mingw-w64-x86_64-pkg-config     

等到完全安装结束。

gaozhihan@vip.qq.com