SDL force print in file

Jul 19, 2013 at 4:35pm
when I try using printf(), the output is put into a file and not the console

How would I force it to print into the console while using the SDL library??
Jul 19, 2013 at 5:08pm
try this:
fprintf(stdout, normal-argument-list...);

this should direct output to the console.
Last edited on Jul 19, 2013 at 5:09pm
Jul 19, 2013 at 5:08pm
This behaviour is only on the Windows platform.

See here for how to fix it:
http://www.libsdl.org/cgi/docwiki.fcg/FAQ_Console
Last edited on Jul 19, 2013 at 5:09pm
Jul 19, 2013 at 6:38pm
Thanks Peter87, Works perfectly!
Topic archived. No new replies allowed.