How To Compile And Run a C/C++ Code In Linux

Iam a new Linux user and student who used to write C or C++ programs on MS-Windows. Now, I am using Ubuntu Linux. How can I compile a C or C++ program on Linux operating systems using bash Terminal application?

To compile a C or C++ program on any Linux distro such as Ubuntu, Red Hat, Fedora, Debian and other Linux distro you need to install:

  1. GNU C and C++ compiler collection
  2. Development tools
  3. Development libraries
  4. IDE or text editor to write programs

Step #1: Install C/C++ compiler and related tools

If you are using Fedora, Red Hat, CentOS, or Scientific Linux, use the following yum command to install best compiler for linux:
# yum groupinstall 'Development Tools'
If you are using Debian or Ubuntu Linux, type the following apt-get command to install GNU c/c++ compiler:
$ sudo apt-get update
$ sudo apt-get install build-essential manpages-dev

Review of Windows Like Zorin OS Core 11

Latest issue of distrowatch weekly features a review of recently released Zorin OS Core 11, an Ubuntu 15.10 based GNU/Linux distribution. Zorin OS is an Ubuntu based operating system which tries to provide a similar desktop experience for windows users. It also provides supports for windows binaries by using wine.

The reviewer concludes this review saying that, though he is feeling positive about Zorin OS 11, he won’t recommend it for windows migrants as it is only supported for 6 months. He prefer to recommend Zorin OS 10 review (based on Ubuntu 14.04.x LTS) or upcoming Zorin release based on Ubuntu 16.04 LTS.

Zorin OS 11 is based on Ubuntu 15.10 and uses version 4.2 of the Linux kernel. Zorin OS 11 Core and Zorin OS 11 Ultimate are both available in 32-bit and 64-bit versions. The 64-bit Zorin OS 11 Core ISO I downloaded for this review was 1.6GB. Version 11 will be supported until July 2016. Users interested in what Zorin OS offers, but in need of a distribution with a longer support period can use Zorin OS 9, which is based on Ubuntu 14.04 LTS and is supported until April 2019. In addition, the LTS release also has free Educational and Educational Lite versions along with the four editions listed above.

Top 3 Best C/C++ IDE/Compilers For Various Platforms

C programming is the core of the programming knowledge. If you want to become a programmer than learning c is a must because it can clear out all yours basics & give you knowledge about programming. In order to program in any language, a good program is also a must. In this article i have enlisted some good c/c++ compilers. All the enlisted compilers are easy to use with great features & keeping in mind that not everyone is professional in programming, these compilers can be used by even those users who are new to computer programming. As a programmer, me & my friends had trouble finding a good compiler & since the best ide for c++ 16bit compiler isn’t supported by latest microsoft operating systems, its better to look for an alternative c compiler. So, follow up the article to find the best compiler that suits your needs.

1. Code::Blocks

Code::Blocks is one of the best C/C++ IDE’s among the current available IDE’s. It is a Open source & free to use IDE, meaning that you can use it without any restrictions & you won’t have to pay anything for it. The best thing about Code Blocks is that you can add more plugins to make it more efficient.