Jump to content
  • Advertisement
Sign in to follow this  
Sir Sapo

output in SDL

This topic is 5032 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

I need to know what a varialbe is being set at and my program uses SDL so I cant get my output out on the console. How can I figure out what this variable is?

Share this post


Link to post
Share on other sites
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!