/ codeblocks

Programming is Fun!- Getting Started with CodeBlocks

You might get frustrated. You might not know how to begin, in the first place. And when your code finally works, you are relieved. We’ve all been there, at some point or the other. That is programming. The best part is if you love it, you’ll have great fun.

And to code, you need an IDE(Integrated Development Environment). For those of you who don’t know what an IDE is, an IDE is a software application that helps you to code. Usually, IDE’s contain a source code editor, build automation tools and debuggers.

Here, we’ll guide you through the installation of one of the most popular free, open-source cross-platform IDE , Code::Blocks.

What is CodeBlocks?

CodeBlocks or “Code:: Blocks” is a very user-friendly open source IDE that comes along with C, C++ and Fortran compilers that help to run your code irrespective of the operating system you’re using. Whether you are on Windows, Linux or Mac Code::Blocks is an ideal tool for young developers to test their code and to witness the underlying fun of programming. Super easy and quite a  convenient tool.

Installing CodeBlocks

On Windows XP/Vista/7/8.x/10

Windows users, you may be devoid of a terminal to run your code, unlike the FOSS people.For testing your programs on a Windows machine Code::Blocks can be your real savior. Download the installer for Windows from any of the links below.

It includes both the compiler (GCC) and IDE.


Open your terminal and type in the following commands. Enter your password when prompted.

Installing C Compiler

The following command will install the C compiler and a bunch of other things you will need for your smooth run.

sudo apt-get install build-essential

Installing CodeBlocks IDE

Enter the following commands after installing the C compiler.

sudo add-apt-repository ppa:damien-moore/codeblocks-stable
sudo apt-get update
sudo apt-get install codeblocks codeblocks-contrib

Check out this page for more details that can help you with the installation.

Other Linux

For installing Code:: Blocks in any other Linux distributions like Fedora, CentOS..etc, You can find the binaries here


The Mac installation is a bit complex when compared with the others. It relies on the Xcode distribution for the compiler. Hence, the installation is a three-part process.

  • Installing Xcode
  • Installing the command line tools
  • Installing Code::Blocks

Follow the steps mentioned below and it’ll be hassle free.

Download the application from here.

Refer this tutorial for detailed instructions on the installation process.

A trouble free installation, right? You’ve successfully taken the first step towards carving your own path as a coder, with Code:: Blocks as your buddy.