How to install CodeBlocks for C/C++

CodeBlocks is a very popular IDE for C/C++ which runs on Windows , Mac and Linux platforms. It’s free and open source. Installation prodedure for CodeBlocks is very easy . Let’s see the installation process.

Installing Codeblocks in windows

Step 1: Download the installer

Go to Binary download page for CodeBlocks http://www.codeblocks.org/downloads/26{:target=”_blank”} . You will see available installer there . Download the installer with MinGW compiler, installer filename will be like codeblocks-xx.xxmingw-setup.exe

Download and install Codeblocks windows

Step 2: Installing

Run the downloaded installer and install with default options.

Installing CodeBlocks in Ubuntu

Installing from terminal

CodeBlocks will run with default gcc compiler. If you want to write c++ code, you need to add a compiler. To do that , run the following command in the terminal to install g++ and CodeBlocks IDE.

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install g++
sudo apt-get install codeblocks -y

Installing from Ubuntu Software Center

CodeBlocks is also available in Ubuntu Software Center. You can search and install it.

CodeBlocks install from Ubuntu Software Center

For details you can also see the documentaion on the official site.

Related posts

Md. Monirul Alom

Md. Monirul Alom

I am a Full Stack Web developer. I love to code, travel, do some volunteer work. Whenever I get time I write for this blog