I tried a less complex program:
#include <SFML/System.hpp>
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <string>
using namespace std;
using namespace sf;
class GraficWindow : public RenderWindow
{
public:
GraficWindow()
{}
GraficWindow(VideoMode Mode, const string &Title, unsigned long WindowStyle=(Style::Resize|Style::Close), int AntialiasingLevel=0) : RenderWindow(Mode, Title, WindowStyle, AntialiasingLevel)
{}
};
int main()
{
GraficWindow Main (VideoMode(800, 600, 16), "Test");
Main.SetBackgroundColor(Color(20, 20, 50));
Main.Display();
Clock c;
while(c.GetElapsedTime() < 5)
;
return 0;
};
Compiler:
g++ -o testgw ./testgw.cpp -lsfml-graphics -lsfml-window -lsfml-system
Same Error...