Sign in to follow this  

output in SDL

This topic is 4819 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

printf() should sent output to stdout.txt. If you are using windows you could call MessageBox(), just while you need it for testing, then take it out to make your code cross platform again.

Share this post


Link to post
Share on other sites
SDL doesn't allow console output by standard? huh?
I've never had any probs with console output or any redirection to stdout.txt. Has it changed recently or is there something I am not aware of?
I print to the console it appears in there... what's the prob?

Share this post


Link to post
Share on other sites
Whenever I've used SDL (on windows) because you use a Win32 app the console doesn't come up. SDL automatically redirects stdout and stderr to text files.

Share this post


Link to post
Share on other sites
Quote:
Original post by Shard
Whenever I've used SDL (on windows) because you use a Win32 app the console doesn't come up. SDL automatically redirects stdout and stderr to text files.


That's why I usually build my SDL apps as Win32 Console applications.

Share this post


Link to post
Share on other sites

This topic is 4819 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this