[SDL] I/O problem (stdio and stderr redirection to txt files)

Martin Storsjö martin at martin.st
Thu Mar 17 22:55:16 PST 2005

On Thu, 17 Mar 2005, Brian Kropf wrote:

> It isn't a misconception. You are correct that normal programs linked as gui 
> applications don't have the stdio active, or open a console window.  You can 
> however allocate a console to a gui window and have the stdio handles 
> available, you can also have a console mode program that links with the gui 
> libraries that has windows and stdio handles, there are many ways to have 
> stdio + windows.  But the problem that we were talking about is with how SDL 
> handles things on windows.  If you build SDL with the redirection on, then 
> when your user program tries to do something like reading from stdin, it 
> can't because of the redirection.

Yes, and my point was, too, that this makes yet one valid reason less to 
keep the current default redirection kludge (which everybody seems to 
agree about anyways), no matter which solution is found to the later 
problem of showing potential error messages.

// Martin

More information about the SDL mailing list