1.Clion下载地址
https://www.jetbrains.com/clion/download/
2.MinGw 下载路径:
https://sourceforge.net/projects/mingw-w64/files/
进去后往下拉,看到如下列表,点第一个下载即可:
MinGW-W64 GCC-8.1.0
x86_64-posix-sjlj
x86_64-posix-seh
x86_64-win32-sjlj
x86_64-win32-seh
i686-posix-sjlj
i686-posix-dwarf
i686-win32-sjlj
i686-win32-dwarf
下载完成后,解压到D盘根目录,形如:D:mingw64
3.配置CLion Toolchain环境
settings -> Build...>Toolchains -> 点加号 + (使用Mingw编译环境),相关环境参数如下图示:
D:mingw64
D:mingw64inmingw32-make.exe
D:mingw64ingcc.exe
D:mingw64ing++.exe
D:mingw64ingdb.exe
4.新建C工程
5.新建C++工程
参考:
Window10上CLion极简配置教程
https://www.jianshu.com/p/1aa989808e15
C/C++ 开发神器 CLion 使用入门
https://blog.csdn.net/zwx19921215/article/details/83306119