SDL_Init() routes stdout and stderr to the respective files. You can revert this by adding the following lines after the call to SDL_Init in your code: freopen( "CON", "w", stdout ); freopen( "CON", "w", stderr );
* If that doesn't work try adding these 2 lines at the very beginning of your code (SDL_Init wrapper or in top of your main)