24 C
Texas

How to install CodeBlocks in Windows 10

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.
- Advertisement -

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.

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article