32-bit application doesn’t run properly when compiled with MinGW

  32bit-64bit, c++, compilation, mingw-w64

I have Installed MinGW with following setup-

Architecture – x86_64

Thread – POSIX

Exception – sjlj

This setup comes with 64-bit and 32-bit libraries in lib and lib32 folder respectively.
By default it compiles to 64-bit application but with -m32 flag, 32-bit application can be made. Initially, Everything worked fine but after few days, I’m having few problems. It successfully compiles 32-bit but when I run it, It throws an Error

The application was unable to start correctly (0xc000007b)

I tried re-installing but it didn’t worked either. Please help.

Source: Windows Questions C++

LEAVE A COMMENT