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

Author Topic: The window opens for milliseconds, than closes despite it shouldn't  (Read 1083 times)

0 Members and 1 Guest are viewing this topic.

Shawnella

  • Newbie
  • *
  • Posts: 1
    • View Profile
Hi, I'm kinda new to SFML, so sorry if this is a dumb question
So, my problem is:

using namespace std;
using namespace sf;

int main()
{
    Window window(VideoMode(800, 600), "Help me please!");
    while(window.isOpen())
        window.display();
    return 0;
}

This code makes a single flash with window, and returns
Error during pretty printers setup: Undefined info command: "pretty-printer".  Try "help info".

Some features and performance optimizations will not be available.

"path"

Process finished with exit code 1

 in debug and
Process finished with exit code -1073741515 (0xC0000135) in release.
SFML 2.5.1, CLion

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
If you Google the error code, you'll gets lots of results, that this happens when DLLs are missing. If you run it directly from the explorer, you'll get the dialog telling you which DLL is missing.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything