how to determine compiler bit

Jan 16, 2017 at 7:18pm
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 Jan 16, 2017 at 7:24pm
Jan 16, 2017 at 10:29pm
At a shell:
g++ -dumpmachine
Jan 17, 2017 at 12:55am
Sorry, how do I make the shell. I tried the "run" CMD but it closed before I saw any dialog.
Jan 17, 2017 at 1:28am
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).
Jan 17, 2017 at 1:34am
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 Jan 17, 2017 at 1:35am
Jan 17, 2017 at 12:46pm
At least I am assuming that

x86_64-w64-ming32

is a 64 bit installation. Is it?
Jan 17, 2017 at 1:12pm
Yes, it is.
Jan 19, 2017 at 8:58pm
Its now reading >ming32 in response to dumpmachine. What it now be any different than the 64 bit indicator above?
Jan 19, 2017 at 9:44pm
-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.
Jan 28, 2017 at 2:20am
g++ -dumpmachine

still:
mingw32
Topic archived. No new replies allowed.