Tuesday, August 23, 2016

How to install C/C++ compiler on Lubuntu 16.04

By default your lubuntu installation does not include C/C++ compiler, so if you want to write codes in C or C++ you need to install the compiler first, in this article i will show you how to install C/C++ compiler on lubuntu 16.04.

Like always, let's use command line to install the package, go ahead open up terminal/console (press CTRL + ALT + T) and then run this command to install C and C++ compiler.

sudo apt-get install build-essential

The build-essential package contains g++ which is C++ compiler and gcc which is C compiler, the package also contains library and header files for C and C++, there's also 'make' utility tool for compilation of makefile.

That's it now you are ready to write some C/C++ program, remember that C language the file extension is in dot c (*.c) while C++ is in dot cpp (*.cpp).

~ happy coding ~


  1. how can i install this if i dont have an internet connection ?


    1. if you using laptop, you can go to your friend house that have internet connection and install from there, or you can find coffee shop that have free wifi