I\'m trying to compile a DLL with mixed Fortran/C code on 64-bit Windows 7 in MSYS2 (msys2-x86_64-20160205) with gcc (5.3.0). I want to compile it 32-bit. (It w
msys2-x86_64-20160205
No one seems to have wanted to post the answer which we figured out in the comments on the question, so I'm posting it to just tie things up.
I needed to start the shell with the C:\msys64\mingw32.exe executable. See the comments for more details.
C:\msys64\mingw32.exe