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) :
Thank you very much,
Maxime.
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;
}
#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.