Hello, how are you? Today we’re going to talk a bit about Code::Blocks. This is an open-source integrated development environment that supports multiple compilers, including GCC, Clang and Visual C++. Also, it is based on the WxWidgets graphical interface platform. Consequently, it can be used freely in different operating systems. In addition, it is licensed under the GNU General Public License. CodeBlocks is a very powerful tool for developing programs in C++. In this post, we will see how to install CodeBlocks on Windows 10.
To download the most recent version of the program, just click on the following link. On the download page, there are several versions to download. In theory, all should work properly. However, I have experienced problems with some of them. Therefore, I recommend the installer with the setup that also includes the MINGW compiler:
Once downloaded the file, just double click on it to start the installation.
Next, accept the license:
On the next screen are all the options available for installation. It is possible to select them according to the needs of the user. However, it is preferable to leave the default options and do a complete installation. This increases the stability of the program:
Then the installation path of the program appears. It is possible to leave the default path or set a custom address:
After setting the parameters, the wizard will start the installation.
After the process is finished, press Next to close the window and launch the program.
Configuring the compiler on CodeBlocks
After launching the program, it is necessary to make some configurations. First, CodeBlocks automatically detects the compilers present in the system. If there are none, then the program compiler is set.
Once the program is configured, it is time to create the first project. With this intention, please click on Create a New Project
Immediately an assistant will be opened to guide us during the creation of the project. Please click Next to start the process.
In the next window, select the type of project to start. In that case, please select Console Application.
Next, select the type of language to use. For the purposes of this example, select C++.
Next is the project configuration window. Here you assign the name to the project. In addition, select the folder where the project will be saved.
Below are options for the compiler and other elements of the project. Additionally, leave all options by default and press Finish to continue.
Back to the initial screen, please locate the Workspace menu in the left column. Forthwith, scroll until you get the main.cpp file. Then double click on it and you will see the file with the classic Hello World.
To compile and run the program, click on the icon shown in the image below. Accordingly, just wait a few moments until the file is displayed in a pop-up window.
After finishing the post, we have seen how to install CodeBlocks on Windows 10. It is designed to be very extensible and completely configurable to the needs of developers. In addition, this IDE has been built around a complementary framework. All right, that’s it for now. I hope you find this post useful. Before saying goodbye I invite you to review our post about enabling PING in Windows Server 2019.