Windows 8 - "stderr" & "stdout"-Where Are they?

Windows 8 - “stderr” & “stdout”-Where Are they?

Hi,

My old SDL 1.2 game engine sent text to “stderr” and “stdout” files in the EXE folder.

I don’t see SDL 2 sending text to either “stderr” or “stdout” files on my Windows 8 ?
How do I enable the above in SDL 2 ?

Thanks!------------------------
JeZ+Lee
JessePalser <AT> Gmail <DOT> com
16BitSoft®
Video Game Design Studio
www.16BitSoft.com

You don’t, that was removed (and in practice wouldn’t have worked as
expected on modern Windows anyway since it tries to write in the
program directory, and you should not write to it if you have
installed the program in Program Files as usual).

If you really want, you can try redirecting them on your own, but
that’s beyond SDL’s scope (I don’t remember the exact functions needed
for this, also using freopen may just work as well though I haven’t
tried it).

SDL_Log will attach to a console (of there is one).On 8/16/2013 11:33 AM, Sik the hedgehog wrote:

You don’t, that was removed (and in practice wouldn’t have worked as
expected on modern Windows anyway since it tries to write in the
program directory, and you should not write to it if you have
installed the program in Program Files as usual).

If you really want, you can try redirecting them on your own, but
that’s beyond SDL’s scope (I don’t remember the exact functions needed
for this, also using freopen may just work as well though I haven’t
tried it).


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org