Compile C/C++ Programs on Linux: This article will show you how to compile a C/C++ program on Linux using the GNU gcc/g++ compiler. Hopefully this article will serve as a guide and tutorial to compiling GNU C/C++ programs on Linux.