

In this window, we will change some settings.

In this new window, go to “ toolChain executables“. Open your code::blocks and go to “ settings” (at the top) and click on “ Compiler…“, a new Window will pop up. Integrating the higher MinGW version with code::blocks After restarting your computer go to the next section. The screen shot is provided below.Īfter adding the directory click ‘ Ok‘ and restart your computer. In this new window, click on the ‘ New‘ button and add the directory “ C:\MinGW\bin“. Double clicking on the ‘ Path‘ will open a new window. In this Window click on the “ environment Variables” button.This will take you to new Window, the screenshot is provided below.ĭouble click on the “ Path” under the ‘ System Variable‘ section. This will take you to a new Window screen which is shown below. Now click on the “ Advanced System Setting“. Go to “ This PC” or “ My Computer“, right click and click on the “ properties“, you will see a new window.The screen shot is provided below. Adding the directory “C:\MinGW\bin” in the environment variables Read the next section on how to add the directory to the “environment variables”. exe file.Īfter installing the MinGW get the directory of the binary files, which is the directory “ C:\MinGW\bin” and add it in the environment variables. Install this latest version in the directory “ c:/” by running the. This version support all the C++17 features. In my time of writing this post the latest MinGW version available is 8.1.0. You can download the higher version here. We will use the higher version of MinGW/GCC. The lower version of MinGW/GCC does not support C++17 features. You can download any of the files and install it. Ii)The other is with MinGW compiler.The file name looks like this “ “. I)One is without MinGw Compiler.The file name looks like this “ “. There will be two links for the download: If you have the lower version we can still enable C++17 features but it is better that you have the latest version (but if you have the lower version and do not want any extra work go directly to the next section).

If you have not installed it, go to the link here Code::blocks and download the latest version (in the time of writing this post the latest version is 17.12). I believe you already have Code::Blocks installed in your computer. Enabling C++17 in Code::blocks will also enable the C++11 and C+14 features.In this post, we will see how to enable C++17 in Code::Blocks MInGw GCC.
