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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Themax737

Pages: [1]
1
Window / SFML window crashes
« on: January 30, 2013, 12:05:33 am »
Hello all,

I'm completely new to libraries and just found out this library. I'm using Code-blocks, I have some C++ basic knowledge.

I tried a first window as shown on the tutorial. When I compile everything compiles nicely, my console starts but no window. Instead I have a message "SFML.exe stopped working"

Any idea what this could be ? Here's my code (very basic) :

#include <SFML/Window.hpp>
#include <iostream>

int main()
{
 // Create the main window
    sf::Window App(sf::VideoMode(800, 600, 32), "SFML Window");

    // Start main loop
    bool Running = true;
    while (Running)
    {
        App.Display();
    }

    return EXIT_SUCCESS;
}


Thank you very much,

Maxime.

Pages: [1]
anything