GCC (GNU Compiler Collection) is a foundational toolchain for C++ development, providing the g++ compiler to transform C++ source code into executable binaries.
- To install the C/C++ extension type ‘c++‘ in the Extensions view (
Shift + ctrl +X). And install C/C++ extension. - Ensure GCC is installed:
- 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 - If GCC isn’t installed, run the following command from the terminal window to update the Ubuntu package lists.
$ sudo apt-get update
- First, check to see whether GCC is already installed. To verify whether it is, open a Terminal window and enter the following command:
- Next install the GNU compiler tools and the GDB debugger with this command:
$ sudo apt-get install build-essential gdb