Why do you have to do itΒΆ

C++ source code must be compiled before to be executable.

MinGW is a compiler which uses g++ tools to compile C++.

This guide will allow you to install MinGW -w64 to compile C and C++, compatible with C++11, for x86 and x64 cross platform development.