CLion minimalist configuration tutorial on Window10

CLion minimalist configuration tutorial on Window10

1. First, download and install CLion

JB company's official website to download Clion,
https://www.jetbrains.com/clion/download/#section=windows

 
Download CLion

If you need to crack the case venue http://idea.lanyus.com/ , recommended that students have the ability to use genuine.
Installed, you can freely.

2. Download and install MinGW

Offers two configuration methods here, thanks to the main blog blankly Six pointing amended.

2.1 Method One: Download MinGW archive

(1) download MinGW
Here it must be noted that the download package, do not download the offline version installed, otherwise you will be loaded into one of these years, and the installation difficult.
Open Download: MinGW  download page

 
MinGW

 

Note: Do not hand cheap point the green button to download! ! !
Pull down, has been pulled below the interface, then you can download the compressed package.

 
MinGW archive

 

Of course, if you hold anything against this speed is too slow, and I was intimate prepared dish network
download link: https://pan.baidu.com/s/1zd5hgyvXJdBxRrj6aq4JKg
Password: obb8
After downloading must be unpacked ah, then start configuring CLion.

(2) Configuration CLion
open CLion, left corner of File-Settings-Build-Toolchains, then click the +

 
settings

 

 
toolchains

Environment选择MinGW,然后填入刚刚解压的MinGW64的路径(这是我的路径):

C:\Users\71022\Documents\mingw64
 
image.png

然后CLion会自动帮你填上所有你该填的东西,点击OK,等调试的小虫子变绿就可以了。

 
image.png

当然,也会出现无法检测成功的情况,这时候就需要手动填写啦。
CMake一般会自动选择。
Make填入路径:

C:\Users\71022\Documents\mingw64\bin\mingw32-make.exe

C Compiler填入路径:

C:\Users\71022\Documents\mingw64\bin\gcc.exe

C++ Compiler填入路径:

C:\Users\71022\Documents\mingw64\bin\g++.exe

Debugger一般会自己填入,如果没有可以手动填:

C:\Users\71022\Documents\mingw64\bin\gdb.exe

然后OK,等一段时间就可以了。
调试效果如下:

 
CLion调试

2.2 方法二:借助DEV C++

(1)下载安装DEV C++
https://sourceforge.net/projects/orwelldevcpp/

 
下载DEV C++

 

安装默认路径即可,注意,选择full安装!!!

(2)配置CLion
同样地,打开CLion,左上角File-Settings-Build-Toolchains,然后点击 + 号

 
settings
 
toolchains

Environment选择MinGW,然后填入刚刚安装的dev cpp的MinGW64的路径:

C:\Program Files (x86)\Dev-Cpp\MinGW64

CMake一般会自动选择。
Make填入路径:

C:\Program Files (x86)\Dev-Cpp\MinGW64\bin\mingw32-make.exe

C Compiler填入路径:

C:\Program Files (x86)\Dev-Cpp\MinGW64\bin\gcc.exe

C++ Compiler填入路径:

C:\Program Files (x86)\Dev-Cpp\MinGW64\bin\g++.exe

Debugger一般会自己填入,如果没有可以手动填:

C:\Program Files (x86)\Dev-Cpp\MinGW64\bin\gdb.exe

然后OK,等一段时间就可以了。

 
配置详情

看到小虫子绿了,就说明配置好了,赶紧试试调试吧!

 
调试

Guess you like

Origin www.cnblogs.com/glc400/p/12044358.html