Laurent,
I realized that I could get all the instructions I
needed on the net.
I went through the entire tutorial on compiling SFML at:
and got the sample program to work.
I changed all the properties in my FirstWindow solution but
got the same error message.
Here's my code:
#include <SFML/System.hpp>
#include <SFML/Graphics.hpp>
int main()
{
// Render up a window called MyWindow
sf::RenderWindow MyWindow(sf::VideoMode(800, 600, 16), "SFML Window");
MyWindow.SetFramerateLimit(60); // Limit to 60 frames per second
// load the image
sf::Image MyImage;
//MyImage.LoadFromFile("Sprite2.bmp");
bool Running = true;
while (Running)
{
// check if there are any events
sf::Event MyEvent;
while (MyWindow.GetEvent(MyEvent))
{
// Window closed by X
if (MyEvent.Type == sf::Event::Closed) MyWindow.Close();
// Escape key pressed
if ((MyEvent.Type == sf::Event::KeyPressed) && (MyEvent.Key.Code == sf::Key::Escape))
MyWindow.Close();
}
// Clear the screen to black
MyWindow.Clear(sf::Color(0, 0, 0));
// display the window pointed to by MyWindow
MyWindow.Display();
}
return EXIT_SUCCESS;
}
See anything wrong here?
jerryd