Installation Win10 Codeblocks (Nightlies) and Mingw-w64 and manually configure c ++ / c compiler environment

Installation Win10 Codeblocks (Nightlies) and Mingw-w64 and manually configure c ++ / c compiler environment

A. Use Nightlies installation codeblocks

1. Go to the official website codeblocks, I will give the following links

Codeblocks official website link: Codeblocks official website

2. Use Nightlies download Codeblocks

Codeblocks use Nightlies download allows you to use the latest and most stable codeblocks, and are using the older version of the installation package, while the old version, and I personally think that Bug is more, it is recommended to use Nightlies installation Codeblocks.

As shown, click into Nightlies.

mark

After entering, choose to download the latest version, you can also choose other versions.

mark

After entering, download the following three files (to Win10x64 system as an example), attention must be all the download, or later error.

mark

3. Install Codeblocks

The downloaded file extract all three give the following three files.

mark

The Mingw64dlls8.1.0 and wxmsw31u_gcc_cb_wx313_2D_gcc810-mingw64.7z two documents the contents of the cut to CB_20191215_rev11927_win64 folder.

The CB_20191215_rev11927_win64 folder cut to partition your disk to install the software.

Opening the CB_20191215_rev11927_win64 folder, CbLauncher.exe sent to the desktop shortcut.

mark

​ 点开CbLauncher.exe,如果没有报错,就说明安装成功。

二.安装Mingw-w64

1.下载Mingw-w64

​ 进入Mingw-w64官网http://www.mingw-w64.org/doku.php

​ 点击Download

mark

​ 在Sources下方点击SourceForge超链接,进入Mingw-w64下载页面

mark

​ 你可以选择Mingw-w64在线安装包,但限于国内网速,将耗费你数小时时间,因此建议下载Mingw-w64离线安装包

mark

​ 选择下载x86_64-posix-seh离线安装包(博主电脑为Win10x64系统),这是最佳的安装包。

mark

2.安装Mingw-w64

​ 下载完成后,你会得到一个压缩包,解压缩,得到如下文件夹。

mark

​ 建议将该文件夹放到C盘或其他硬盘分区根目录下,即C:\mingw64

​ 将mingw64文件夹下的子目录bin文件夹加入到系统和用户环境变量下的Path中。

mark

mark

mark

mark

mark

​ 现在,Mingw-w64安装完毕。按下Win+R,输入CMD,进入控制台

​ 输入gcc -v

gcc -v

mark

mark

mark

​ 如果显示如上,则说明你的Mingw-w64安装成功。

四.用Codeblocks配置Mingw-w64

Open on the desktop CbLauncher.exe , will appear in front of a compiler automatically detected, do not ignore it, directly into the Codeblocks.

The next dialog box will pop up a few, all point Yes , after entering the main interface.

mark

Click Settings , select the Compiler ... , enter the setup interface.

mark

Click Toochain executables , according to bloggers such settings.

mark

After that, click Compiler Settings , selectmark

This one can be.

    之后选择**Debugger...**![mark](http://q3w514iod.bkt.clouddn.com/blog/20200110/UfA8coQjiIXK.png?imageslim)

Into the configuration interface, the establishment of gdb64 entry.

mark

Enter gdb64 entry, according to bloggers so you can set

mark

This way, your Mingw-w64 on the configuration, you can have fun and C / C ++ played around!

Guess you like

Origin www.cnblogs.com/TonyZ315/p/12178059.html