How to Install g++ in Ubuntu 18.04



Install g++ by entering the following commands in the terminal:

sudo apt update
sudo apt install g++

Description:

GNU C++ compiler

This is the GNU C++ compiler, a fairly portable optimizing compiler for C++. . This is a dependency package providing the default GNU C++ compiler.

Version: 4:7.3.0-3ubuntu2

Section: devel