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

Author Topic: SFML 1.6 - Window won't react  (Read 1261 times)

0 Members and 1 Guest are viewing this topic.

Mitmischer 1703

  • Newbie
  • *
  • Posts: 8
    • View Profile
SFML 1.6 - Window won't react
« on: April 15, 2011, 07:36:14 pm »
Hi, I have to annoy you once again!

I have following code to create a black window:

Code: [Select]
#include <SFML\Window.hpp>
int main()
{
    sf::Window App(sf::VideoMode::GetMode(0) , "SFML Window");
    while (true)
        App.Display();
    return 0;
}


The window appears but it just doesn't react - I can't close it nor move or resize it. I am linking statically, the examples, that link dynamically, work fine. But when I link them statically as well, they won't react either. If dynamic linking is the only solution, how can I do it? I get errors "undefined reference to ..." although I defined SFML_DYNAMIC. What have I forgotten?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
SFML 1.6 - Window won't react
« Reply #1 on: April 15, 2011, 08:07:33 pm »
Quote
What have I forgotten?

An event loop ;)
Laurent Gomila - SFML developer

 

anything