How to build a C++ program from its source code

There are many options to set up a development environment on each operating system. What proposed here is not the only option, but I try to minimize your effort. You may skip some of the steps if they have been properly set up already.

Install a C/C++ compiler

Some compilers can be installed separately, but some compilers do come along with an IDE (Integrated Development Environment). We recommend to install the commonly used IDE for an operating system.

Build

Choose ONE of the following (or whatever you are familiar with):

Here are more details about How to Build a CMake-based Project.

Copyright @Liangliang Nan. 2021