Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Is there a console?  (Read 1390 times)

0 Members and 1 Guest are viewing this topic.

intrinsic

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Email
Is there a console?
« 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?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Is there a console?
« Reply #1 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.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

jamesL

  • Full Member
  • ***
  • Posts: 124
    • View Profile
Re: Is there a console?
« Reply #2 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


intrinsic

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • Email
Re: Is there a console?
« Reply #3 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

 

anything