This article provides a guide on how to update or install the new version of GCC MinGW on Windows.
To update, remove or rename the old version installation folder and download the new version from the provided link.
After extracting the file, move the mingw32 folder to drive C:\ and rename it to mingw64.
To add to the PATH system variable, open the terminal as an administrator and set the environment variable. Check the version with g++ --version command.