check the platform of the installed mingw, 32bit or 64 bit

Omkar picture Omkar · Aug 18, 2013 · Viewed 43.4k times · Source

I am programming in c++. I have installed mingw. I installed it from the standard installer from mingw website. I am confused between mingw32, mingw, mingw64. What are the differences and how can I check my version. Also when my programs are build, how would I know whether the executables created are 32 bit or 64 bit?

Answer

RobM picture RobM · Aug 18, 2013

mingw and mingw32 are for creating executables for 32-bit windows systems. mingw64 is for creating 64-bit executables. Note: this doesn't have to do with what version you are running when you do the build, but what the target system is for the executable you are creating (the system on which you will be running the newly created executable).

Regarding MinGW and MinGW32, here's a snippet from
The MinGW Wiki

"The project's name changed from mingw32 to MinGW is to prevent the implication that MinGW will only works on 32 bit systems (as 64 and higher bit machines become more common, MinGW will evolve to work with them)."

To find out what version you have, go the the associated bin directory and do:

gcc --version

I'd recommend checking out minGW-w64, from here: http://mingw-w64.sourceforge.net/
That projects goal is to "deliver runtime, headers, and libs for developing 64 bit (x64), as well as 32 bit (x86), windows applications using gcc-4.6 or newer versions."