Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22014

Configure MinGW-w64 for 32bit and 64bit Executables

$
0
0

I honestly have spent too long Googling this.

I would like to setup MinGW-w64 so that I can simply pass the -w32 flag in order to create a 32-bit executable, and leave it as default to create a 64-bit executable.

During the setup of MinGW-w64, I have numerous options. For Architecture there is i686 and x86_64. For exception there is dwarf, SJIJ, and SEH.

This thread here (How do I compile and link a 32-bit Windows executable using mingw-w64) suggests that only SJIJ allows the -m32 flag to be passed in order to create a 32-bit binary, however I have found conflicting information elsewhere.

How can I set up MinGW so that I can easily both 32-bit and 64-bit architectures?

Thanks


Viewing all articles
Browse latest Browse all 22014

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>