How to install CodeBlocks in Windows 10

Windows Articles

Top 8 features for power users in Windows 10

Hello! Windows 10 is full of features and functions. In fact, that's one of the reasons it's so popular and used. Because it can...

How to access System in Windows 10

Perhaps the title of this post is misleading. In previous versions of Windows, it was enough to enter the Control Panel and from there,...

Microsoft reduces the fragmentation of Windows 10

Windows 10 20H2 has been released as a minor operating system update. As a result, it has managed to reduce platform errors. In addition,...

How to install Nginx and PHP on FreeBSD?

Hello, friends. FreeBSD is a secure system even more than Linux, that's why it's used as the main server. And a server has to...

How to enable local port forwarding using Ubuntu 20.04 and ssh

SSH, a very popular tool found almost with every IT guy. Commonly, when we talk about the insecure network for data, ssh is the...

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.

Downloading CodeBlocks.

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:

Download the installer with Setup and MINGW
Download the installer with Setup and MINGW

Once downloaded the file, just double click on it to start the installation.

Installation wizard starting.
Installation wizard starting.

Next, accept the license:

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:

Choose the components to install.
Choose the components to install.

Then the installation path of the program appears. It is possible to leave the default path or set a custom address:

Setting the installation folder
Setting the installation folder

After setting the parameters, the wizard will start the installation.

CodeBlocks running the installation on Windows 10.
CodeBlocks running the installation on Windows 10.

After the process is finished, press Next to close the window and launch the program.

Installation completed
Installation completed

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.

Autodetecting the compiler.
Autodetecting the compiler.

Testing CodeBlocks.

Once the program is configured, it is time to create the first project. With this intention, please click on Create a New Project

Creating a new project.
Creating 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.

New project creation wizard.
New project creation wizard.

In the next window, select the type of project to start. In that case, please select Console Application.

Select console application
Select console application

Next, select the type of language to use. For the purposes of this example, select C++.

Select C++
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.

Assigns the name and destination folder of the project.
Assigns the name and destination folder of the project.

Below are options for the compiler and other elements of the project. Additionally, leave all options by default and press Finish to continue.

Select the compiler.
Select the compiler.

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.

Test file in CodeBlock
Test file in CodeBlock

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.

CodeBlocks running the file test.exe
CodeBlocks running the file test.exe

Conclusion

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.

More articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest article

Top 8 features for power users in Windows 10

Hello! Windows 10 is full of features and functions. In fact, that's one of the reasons it's so popular and used. Because it can...

How to access System in Windows 10

Perhaps the title of this post is misleading. In previous versions of Windows, it was enough to enter the Control Panel and from there,...

Microsoft reduces the fragmentation of Windows 10

Windows 10 20H2 has been released as a minor operating system update. As a result, it has managed to reduce platform errors. In addition,...

How to install Nginx and PHP on FreeBSD?

Hello, friends. FreeBSD is a secure system even more than Linux, that's why it's used as the main server. And a server has to...

How to enable local port forwarding using Ubuntu 20.04 and ssh

SSH, a very popular tool found almost with every IT guy. Commonly, when we talk about the insecure network for data, ssh is the...
x