I had a hunch you were going to attempt this
What i did is that i placed the dll's inside the directory which also contains the executable that you just compiled (that should at least quick fix your issue).
I do not recognize the error, but we could check some things:
- which version of windows are you running (and is it 32 or 64 bit) ?
- do you have antivirus software running ?
- which SDL file did you download exactly (full filename please).
Depending on the answer(s) you either downloaded and installed the wrong version of the sdl2 archive (32 vs 64 bit) or you compiled your source for the wrong target.
There is also a slight change that your antivirus software is preventing your code or dll to load properly. Did you had similar looking problems in the past ?