SFML community forums

Help => General => Topic started by: intrinsic on August 11, 2016, 11:47:42 pm

Title: Is there a console?
Post by: intrinsic on August 11, 2016, 11:47:42 pm
I would like to check to see if snippets of my code work by printing to a console like window.
Is this possible?
Title: Re: Is there a console?
Post by: eXpl0it3r on August 12, 2016, 12:19:53 am
Yes, you just use the normal C++ facilities (e.g. std::cout).

On Windows make sure though that you're not linking against sfml-main and that your sub-system is set to console.
Title: Re: Is there a console?
Post by: jamesL on August 12, 2016, 12:21:25 am
I know codeblocks provides a console window

I'm sure other IDEs do too

with codeblocks I can compile an sfml program and run it from codeblocks

codeblocks will open open a console window where all my couts will go to and it will of course open my sfml program

Title: Re: Is there a console?
Post by: intrinsic on August 12, 2016, 12:48:44 am
please delete this post. I made it before compiling my fist program. I feel like an idiot lol