I will explain how to install g ++. Install g ++ using the apt command. Run with administrator privileges using sudo.
sudo apt install -y g ++
Main uses of g ++
The use of g ++ is C ++ compilation. You can compile C ++ source files to create object files.
An object file is a machine language file that contains processing for one or more C language files.
g ++ also includes a linker. The linker feature allows you to combine object files to create executables, static libraries, and shared libraries.
C language compiler gcc
Since C language is used in Perl's XS module, let's also install gcc, which is a C language compiler.