User forums > Help

SDL + console

<< < (2/2)

thomas:
Ah yes, I forgot about that... my bad.

This is a SDL feature, I don't know how to turn it off right now, but it is documented somewhere. I think you have to change only one #define and recompile or something...

EDIT:
There it is: rebuild with NO_STDIO_REDIRECT defined when compiling src/main/SDL_main.c :)

Fero:
thanks a lot!

takeshimiya:
Fero: alternatively, if you don't want to rebuild SDL, put this at the very beggining of main():


--- Code: (cpp) ---freopen( "CON", "wt", stdout );
freopen( "CON", "wt", stderr );
--- End code ---

Navigation

[0] Message Index

[*] Previous page

Go to full version