There are three main versions of the MingW:
1- mingw32-gcc.exe the compiler will build 32-bit applications on 32-bit systems.
2- i686-w64-mingw32-gcc.exe the compiler will build 32-bit applications on 64-bit systems.
3- x86_64-w64-mingw32-gcc.exe the compiler will build 64-bit applications on 64-bit systems.
of course, more details arise once you read the documentation. ensure you are installing the correct version.
Answer from eliahonader on Stack OverflowThere are three main versions of the MingW:
1- mingw32-gcc.exe the compiler will build 32-bit applications on 32-bit systems.
2- i686-w64-mingw32-gcc.exe the compiler will build 32-bit applications on 64-bit systems.
3- x86_64-w64-mingw32-gcc.exe the compiler will build 64-bit applications on 64-bit systems.
of course, more details arise once you read the documentation. ensure you are installing the correct version.
x86_64-w64-mingw32-gcc.exe is part of the MinGW-w64 project. This is different to the MinGW project. So you installed the wrong thing.
Here is the homepage for MinGW-w64. For a self-installer, follow the "Mingw-builds" link from the download page.