[SDL] console output under windows

Andre Krause post at andre-krause.net
Fri Jun 16 04:08:59 PDT 2006


C.Alvarez wrote:
> Hello
> 
> I am trying to make a simple SDL application under windows with Mingw
> gcc. I like to use msdos console to display some debugging output, but
> when I insert SDL.h header and I link sdl and sdlmain libs, then console doesn't display
> anything anymore...
> 
> I tryed with and without -mconsole flag, this doesn't change.
> 
> Is this a mess from me or else ?
> 
> thnx
> 
> 
> _______________________________________________
> SDL mailing list
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl
> 
> 
look at sdl_main.c
there this redirection is somehow controlled.

search for:
	/* Redirect standard input and standard output */
	newfp = freopen(stdoutPath, TEXT("w"), stdout);





More information about the SDL mailing list