If you are a C++ developer and you use Linux, then this tutorial is for you, because I will introduce you Codeblocks an open source IDE designed for this popular programming language and for Fortran.
Some time ago I was talking to you about how to compile C++ on Linux. This served as a gateway for many programming enthusiasts. However, I think you should start with the first thing. What is C++?
In short, C++ is a compiled programming language that supports object-oriented programming. With this language many important applications have been created such as Microsoft Office, LibreOffice and more than half of MariaDB.
Codeblocks to write code better
To write code optimally, it is best to do it with an IDE. Many times choosing the right IDE can reduce coding times and improve the way software is built.
With this in mind is that Codeblocks arises, to be highly configurable and adaptable to each of the developers. It is also supports the Fortran language which although less popular than C++ is still used for educational and scientific purposes. In addition, it has Code completion, class browser and smart indent.
Codeblocks is released under the GPL3 license which guarantees that it is open source and can be installed on various operating systems such as Windows, Mac OS and of course for Linux.
There are many features that make Codeblocks a fantastic IDE. These are some of them:
- Open Source. That means it’s free, no tricks, nothing like that. Ideal if you’re learning to program and don’t want to pay for IDE.
- Cross-platform. It can be installed on Windows, Mac Os and Linux. However, the fact that it can be installed on Linux is enough, isn’t it?
- Does not require external libraries because it is written in C++.
- Thanks to the plugins you can extend their functionalities.
It is compatible with many compilers such as GCC, clang or Digital Mars.
Install Codeblocks on Linux
The installation of Codeblocks on Linux is very simple. You should go to this link and select the binary you want. If you use Debian, Ubuntu or one of their derivatives, then you must choose the .deb format. If you use Fedora, openSuse or CentOS 7, then .rpm.
In this case, I will install Codeblocks on a Debian 9 system, so I will choose to download the .deb packages.
Once the file has been downloaded and decompressed. Proceed to install them by terminal. The content of the downloaded file I have put in a folder called codeblocks.
Then, open a terminal, locate it in the directory and run:
:~$ cd codeblocks
:~$ sudo dpkg -i *.deb
In case you have any unfulfilled package or dependency. Run:
:~$ sudo apt --fix-broken install
Finally, open it from the main menu.
And that’s it.
The process of making a program is not simple, it requires a lot of time and tools to make available to the developer a series of features to help in this process. Fortunately there is Codeblocks, a free, multi-platform tool full of ready to use features.
Tell us, are you a C++ developer? Or Fortran? How was your experience with this IDE?
Please spread this article through your social networks.