SDL2, first problems

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.

Yes - good point.

All the printf’s should be converted to SDL_Log or SDLTest_Log calls
which will go through the platform specific SDL output routine which
attaches to the console on windows (if available).

I’ve opened Bug 2034 http://bugzilla.libsdl.org/show_bug.cgi?id=2034
to track this.On 8/13/2013 10:15 AM, George Brink wrote:

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.