SFML community forums

Help => Window => Topic started by: xDancinPoptartx on August 06, 2012, 11:23:44 pm

Title: error help (SFML 1.6)
Post by: xDancinPoptartx on August 06, 2012, 11:23:44 pm
I keep getting a undefined error for sf::Window
#include <SFML/window.hpp>
int main(int argc, char** argv)
{
    sf::Window App(sf::VideoMode(640, 480, 32), "Everything");
    bool running = true;
    while(running)
    {
        App.Display();
    }
    return EXIT_SUCCESS;
}
 
Title: Re: error help (SFML 1.6)
Post by: eXpl0it3r on August 07, 2012, 12:56:07 am
The only thing I see wrong in your code is the SFML/window.hpp because it should be SFML/Window.hpp.
If that does not fix the error, then you haven't installed SFML right or setup your IDE right.

Btw I advice you to switch to SFML 2. ;)
Title: Re: error help (SFML 1.6)
Post by: Laurent on August 07, 2012, 08:00:55 am
Would you mind giving more details?

What did you do? What are your linker settings? What is the exact error message?