[SDL] stdout.txt and stderr.txt

Simon Gornall simon at unique-id.com
Tue Apr 4 12:08:26 PDT 2000

Sam Lantinga wrote:
> > Andrew Shakinovsky wrote:
> > >
> > > In Win32 it redirects the output to a file in the WinMain function. You
> > > should be able to redirect it back to stdout by doing a freopen with "CON"
> > > as the file eg:
> > > freopen( "CON", "w", stdout );
> > I'm having the same problem under winNT 4. I tried the above, but no joy
> > (I also tried "CON:" because of (very) vague memories of device names :-)
> > Does NT have a different name for the console ?
> As far as I know you only get console output when you build a "console"
> application, one that brings up a black input/output window.  That's why
> I redirect stdio to files.

Hmm. I'm using mingw32 (2.95.2) and compiling with -mwindows options, I
don't get a black box, but I do get the files in the cwd.


More information about the SDL mailing list