Windows Setup (MinGW)

Rem. This part is only for advanced users. THe use of Visual Studio is encouraged.
While MS Visual Studio is the most standard approach to compile C++ on Windows, you may use alternative compiler and IDE. These alternative solution can be lighter than using the full Visual Studio IDE, but require more technical set-up.

System setup

These steps need to be done only once on a given computer.
Follow the instructions described on this page to install MinGW and set VS Code.
pacman -S --needed base-devel mingw-w64-x86_64-toolchain

Compiling in VS Code

This step needs to be done every time you will open a C++ project.
Let us consider the root_directory of the project (directory with the CMakeLists.txt) to be examples/example_compilation/
assets/vs-code-build.jpg
assets/choose_gcc.jpg
Once compiled, the file build/example_compilation.exe should be generated. You can run the executable either:
.\build\example_compilation.exe
assets/run_command_line.jpg