Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How to Code Blocks download and Install on Windows 11 with Compilers ( GCC, G++)

Code Blocks is an open source IDE and free for C, C++, and Fortran programming languages. It supports multiple compilers, such as GCC, Clang, and Visual C++. In this article, We will show you how you can Code Blocks download and install them on your Windows 11 operating system. So, Code Blocks is one of the most popular IDEs for developing C or C++ programs. So, let’s see how we can install it.

Code Blocks Download for Windows 11

Open your favorite browser and search for Code Blocks, and the first Code Blocks download link that will appear here will be from CodeBlocks.org. So, we are going to click on this Code Blocks download link. If you are not directly redirected to the Code Blocks downloads page, you can click on the Code Blocks downloads link on the left hand side, and you will reach to this Code Blocks download web page.

Now in here you need to click on the download the binary release link and then on the next page you can scroll down where you will see the Microsoft Windows option and we want to install Code Blocks with MinGW compiler. So we are going to select this Code Blocks download link which says Code Blocks and the latest version is 20.03. And which also includes the name MinGW setup.

So what it’s going to do is it’s going to install the Code Blocks with MinGW, MinGW is a compiler which will help you to compile and run your C or C++ programs. That’s why we want to install Code Blocks with MinGW. So you can select any Code Blocks download link in front of this MinGW setup. I’m going to select the sourcewatch.net link, which is going to start the download of this exe file. So, just wait for this Code Blocks download to complete.

Install Code Blocks for Windows 11

So once this executable file is downloaded, we are going to click on this executable file, and I’m going to minimize the browser. And first of all, you will see this warning which says, do you want to allow this app from unknown publisher to make changes on your device? I trust this app. So, I’m going to click on Yes here.

It’s going to start the installation of Code Blocks on your Windows operating system. So, on the first window, you just need to click on the next button. And here you will see the license terms and conditions. So, if you agree with the license terms and conditions, click on I agree. And then Code Blocks is going to install all these things on your Windows operating system. So just leave everything as default and then click on next.

This will be the location where Code Blocks will be installed. So if you don’t have the good reason to change this location, just leave it as default and then click on next, which is going to start the installation process. So, at this point, you just need to wait for this progress bar to reach to the 100% mark. So I’m going to wait for that.

Now, at the end, Code Blocks is going to ask you, do you want to run Code Blocks now? I’m going to click on Yes here, which is going to complete the installation process. You can see the installation process has been completed. So, I’m going to click on next here. And then I’m going to click on finish. And because we have just clicked that button, which is going to launch this Code Blocks.

You will be able to see this window, which says GNU GCC compiler detected. So because we have downloaded the Code Blocks with MinGW setup, that’s why you can see the compiler is GCC compiler and the status here is detected. You can click on OK here. And now you can see that Code Blocks IDE has been launched.

Configuring Code Blocks fow Windows 11

You might also see this warning, which says Code Blocks is currently not the default application for C and C++ source files. If you want to create the associations, you can click on these radio buttons. But for now, I’m going to leave it as default and then click on OK. And first of all, you can also see that this Code Blocks shortcut icon is also created on my desktop. So now, let’s create a very simple C++ program on our Code Blocks IDE.

Creating a Project and Writing Code

Let’s see whether it’s working or not. So to create a new project, click on file, then new, and then click on project. And from here, you can choose different kinds of projects. So, we want to create a console application.

So I’m going to click on the console application and then click on OK. And then I’m going to click on next here. And then here we can choose the language C or C++. I’m going to choose C++ and then click on next. And then you can provide the project name. So I’m going to name my project as Hello World here. And you can choose the folder where you want to save your project. So, I’m going to save my project in my documents folder.

And also you will be able to see the resulting file name here, which will be inside the folder, which you have selected here. I’m going to click on next here. And then you can select the compiler from this list. In our case, we needed to choose the GNU GCC compiler, which was automatically detected, and then click on finish. 

It’s going to create a very simple program for us. You can see there is a source folder, and inside the source folder, we have this main.cpp file. And there is this very simple Hello World C++ program here. So in order to run this program, first of all, you need to compile that or build this program. And to build this program, you can click on this build icon here. When you click on the build icon, your program will be built. And if the build is successful, you can see zero errors here, then you can run it.

Building and Running the Code

So you can click on this run button in order to run this program. And you can see it runs this program and prints Hello World, which was the output, which we want to print in this console application. So everything is working fine. Now, you can start using code blocks for building your C or C++ programs.

So in this way, you can code blocks download and install on your Windows 11. Code Blocks is a useful and efficient IDE for developers who want to code in C, C++, or Fortran on Windows 11. With its customizable features and compatibility with different compilers, it is a popular choice among programmers. By following the steps above, you can easily Code Blocks download and install on your Windows 11 system and start coding with ease.

The post How to Code Blocks download and Install on Windows 11 with Compilers ( GCC, G++) appeared first on Extended Tips.



This post first appeared on IPTV Subscription 2022, please read the originial post: here

Share the post

How to Code Blocks download and Install on Windows 11 with Compilers ( GCC, G++)

×

Subscribe to Iptv Subscription 2022

Get updates delivered right to your inbox!

Thank you for your subscription

×