You got a wrong version of SDL2, incompatible with your compiler. I recommend redownloading it from MSYS2 along with the compiler, that will surely be compatible.
↧