+ 3

Error: I was trying to compile my program for a 32 bit machine. I use x86_64 mingw 8.1 compiler on Windows 10 64-bit version.

I used the flag -m32 but it showed -lmingw32 missing. How do I get those 32 bit libraries. I just wanted to experiment it. Where would that library be available? If not, please suggest me another compiler to run code for both version. And yes, can I set 2 different binary files path in environment variables. Would there be any issue?

17th Oct 2020, 9:02 PM
Sneh Chauhan
Sneh Chauhan - avatar
6 Answers
+ 6
Mingw-w64 is an advancement of the original mingw.org project, created to support the GCC compiler on Windows systems. You should fixed your binary files path in environment variables. Most programs are still 32 bit and run fine on 64-bit Windows systems. Those programs are machine language, which has a one-to-one mapping with assembly (and can be easily disassembled into x86 assembly code). For more detail: https://en.m.wikipedia.org/wiki/X86-64
17th Oct 2020, 9:26 PM
Mǟɖ↻ôɖɆⱤ💉
Mǟɖ↻ôɖɆⱤ💉 - avatar
+ 3
Himanshu Alright, thanks👍
19th Oct 2020, 2:55 PM
Sneh Chauhan
Sneh Chauhan - avatar
+ 1
Mǟɖ↻ôɖɆⱤ💉 Well, then what would be the problem with my case. I've set path of bin folder in environment variables.
17th Oct 2020, 9:32 PM
Sneh Chauhan
Sneh Chauhan - avatar
17th Oct 2020, 9:38 PM
Mǟɖ↻ôɖɆⱤ💉
Mǟɖ↻ôɖɆⱤ💉 - avatar
+ 1
Okkay thanks👍
18th Oct 2020, 5:38 AM
Sneh Chauhan
Sneh Chauhan - avatar
+ 1
Himanshu Bro, I've done that but my compiler doesn't let me to cross compile my code so that I can make it work on a 32 bit machine. I think a library is missing which is leading to Linking error but where do I get it?
19th Oct 2020, 2:35 PM
Sneh Chauhan
Sneh Chauhan - avatar