SFML community forums

Help => General => Topic started by: Mitmischer 1703 on April 15, 2011, 07:36:14 pm

Title: SFML 1.6 - Window won't react
Post by: Mitmischer 1703 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?
Title: SFML 1.6 - Window won't react
Post by: Laurent on April 15, 2011, 08:07:33 pm
Quote
What have I forgotten?

An event loop ;)