how to determine compiler bit

I am building SDL in Eclipse and it has different build paths for 32bit/64. How do determine my current bit configuration in MinGW?
Last edited on
At a shell:
g++ -dumpmachine
Sorry, how do I make the shell. I tried the "run" CMD but it closed before I saw any dialog.
I'm not entirely sure, but IIRC you need to enter "cmd" into the RUN dialogue.
I think you can get the run box by pressing Windows+R (i.e., the Windows key and the letter R simultaneously).
add cmd / k before g++ -dumpmachine now window stays open, and my system is read as having x86_64-w64-ming32! So we have a 64 bit installation. Thx.
Last edited on
At least I am assuming that

x86_64-w64-ming32

is a 64 bit installation. Is it?
Yes, it is.
Its now reading >ming32 in response to dumpmachine. What it now be any different than the 64 bit indicator above?
-dumpmachine reports the target triplet.
Architecture, vendor, operating-system, in that order, delimited by hyphens.

x86_64 implies that the target architecture is 64-bit.
g++ -dumpmachine

still:
mingw32
Topic archived. No new replies allowed.