Skip to content

Interpreter / Cling

If you are using C++ for scientific computing or learning C++, it's often useful to have a C++ interpreter for short experiments.

You can install Cling from most package managers for Linux or Mac OS. You can also follow the instructions on their website to download the binaries or build it from source.

Although you can use cling directly, it is much more convenient to use the interpreter as a Jupyter notebook kernel. You can follow these instructions to install Jupyter Lab, and these instructions to install the xeus-cling kernel.

This creates a beautiful environment for playing with C++ interactively: