GCC C++ Compiler for Linux

GCC (GNU Compiler Collection) is a foundational toolchain for C++ development, providing the g++ compiler to transform C++ source code into executable binaries.

  1. To install the C/C++ extension type ‘c++‘ in the Extensions view (Shift + ctrl +X). And install C/C++ extension.

  2. Ensure GCC is installed:
    1. First, check to see whether GCC is already installed. To verify whether it is, open a Terminal window and enter the following command:
      $ gcc -v
    2. If GCC isn’t installed, run the following command from the terminal window to update the Ubuntu package lists.
      $ sudo apt-get update
  3. Next install the GNU compiler tools and the GDB debugger with this command:
    $ sudo apt-get install build-essential gdb