Installing the MinGW Dependency

  1. Download the latest MinGW installation package from https://sourceforge.net/projects/mingw-w64/files/. Select a version based on the OS. For example, select x86_64-posix-seh for a 64-bit OS.
  2. Decompress the MinGW installation package to a custom directory.
  3. In the Windows 10 OS, choose Control Panel > System and Security > System > Advanced system settings.
  4. In the System Properties dialog box displayed, click Environment Variables. See Figure 1.
    Figure 1 Environment variables
  5. In the Environment Variables > System variables dialog box, select the Path variable and click Edit. See Figure 2.
    Figure 2 Editing the Path environment variable
  6. In the Edit environment variable dialog box, click New, enter the path of the bin directory generated after the MinGW installation package is decompressed, for example, D:\mingw64\bin, and click OK. See Figure 3.
    Figure 3 Creating an environment variable
  7. Open the CLI and enter the gcc -v command.

    If message "gcc version x.x.x (x86_64-win32-seh-rev0, Built by MinGW-W64 project)" is displayed, the installation is successful.