Sign in to follow this  

c++ console/cout quick question

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

Hello, My cout<< calls are printed into an stdout.txt file instead of the console window... does anyone know how to get it back to printing into the console? I'm using SDL and OpenGL, does that have anything to do with it?

Share this post


Link to post
Share on other sites
No it shouldn't have anything to do with sdl or opengl. Do you have your program set up to not display a terminal? What IDE are you using it may be redirecting stdout since you have your app set to be a non console app.

Share this post


Link to post
Share on other sites
Quote:
Original post by stonemetal
No it shouldn't have anything to do with sdl or opengl.

Other than the small fact that SDL redirects stdout to a file, that file being stdout.txt. Assuming Windows, building your project in the console subsystem should prevent SDL from redirecting the handle.

Share this post


Link to post
Share on other sites

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