Just downloaded the SDL2 to a WinXP with MinGW and found two minor but
annoying problems:
First problem.
The file SDL2-devel-2.0.0-mingw.tar.gz which is supposed to be for MinGW
is actually a cross-compilation from MinGW-w64. But unfortunately there
are some differences between these two packages. So if you (like me) are
using original MinGW - do not use SDL2-devel-2.0.0-mingw.tar.gz!
The manual compilation in MinGW/MSYS environment went through without
any problems.
Second problem.
All tests are compiled with -mwindows key, even those which are supposed
to be a console applications. So no stdout/stderr is available and all
printf()/frprintf(stderr) are going to nul.
Manual recompilation without -mwindows key solves the problem.
In some older version of SDL, SDL_Main() for Windows had a redirection
of stdout/stderr into files - cannot find such code in a new version of
the library.