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
Hi,
The output is redirected to a pair of files
stdout.txt and stderr.txt on the application’s
directory.
Cheers,
Paulo
Quoting “C.Alvarez” :> 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
This message was sent using IMP, the Internet Messaging Program.
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);
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 ?
It’s from SDL. To remove it, pass --disable-stdio-redirect to configure
and rebuild.
thnx
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: Digital signature
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20060616/f7e13113/attachment.pgpOn Fri, Jun 16, 2006 at 12:46:06PM +0200, C.Alvarez wrote: