Okay, so I did a fresh install of Xubuntu 11.10, and when I try to run a run a simple program I get this error.
./a.out: error while loading shared libraries: libsfml-graphics.so.2: cannot open shared object file: No such file or directory
Everything compiles fine, so uh. Whats going on?
Oh, here's the code if it helps
#include <SFML/Graphics.hpp>
int main()
{
sf::RenderWindow window(sf::VideoMode(854, 480), "cos(x), the next Nullular Grapher!");
int x = 0;
int y = 0;
sf::Shape rect = sf::Shape::Rectangle(1, 1, 1, 1, sf::Color::Red);
while (window.IsOpened())
{
sf::Event event;
while (window.PollEvent(event))
{
if (event.Type == sf::Event::Closed)
{
window.Close();
}
}
window.Clear();
rect.SetPosition(1, 1);
window.Draw(rect);
window.Display();
}
return EXIT_SUCCESS;
}
[/code]