Can't compile 32-bit SDL2 on Dev C++

I’m using Dev C++ to code SDL2, but for some reason I can’t compile for 32-bit systems. It gives me the 0xc000007b error. However. I can compile for 64-bit. Can anyone help?


  • I am aware you have to use the 32-bit .DLL file for it to run. the 64-bit .exe works with the 64-bit .dll; but the same does not apply for the 32-bit .exe.
  • I put all the 32-bit development stuff (from i686-w64-mingw32) inside the MinGW64 folder in the Dev C++ folder. I put the 64-bit development stuff inside x86_64-w64-mingw32 inside the MinGW64 folder.
  • As stated, the 64-bit .exe works fine.
  • Im using Dev C++ 5.11.

I’ve got all three .dll’s (all pre-included in Dev C++).

On the other hand, plain old SJLJ distributions are indeed dual-target, and in order to build 32-bit target, just supply -m32 flag.

How do I pick SJLJ then?