Install a Compiler

Windows

In Windows, installing the compiler is slightly complicated. We refer to the Visual Studio Code instructions. Follow the instructions in the two sections named “Set up your Linux environment” and “Run VS Code in WSL” to complete setup.

macOS

On macOS, the Clang compiler is installed by opening a command terminal and running

xcode-select --install

Linux

If you are using an Ubuntu-based Linux distribution, you can install the G++ compiler by running the command

sudo apt install g++

For any other Linux version, we trust that you know how to install packages on your own.