Compile and link C++ source codes and headers from terminal in MacOS

Compiling C++ source codes and headers files from Terminal in macOS is a bit painful if you don’t have any experience with compiling. What I have learned below. Create a…