 <p>If you follow this tutorial it should work: </p> <p><a href="http://sfmlcoder.wordpress.com/2011/08/16/building-sfml-2-0-with-make-for-gcc/" rel="nofollow">http://sfmlcoder.wordpress.com/2011/08/16/building-sfml-2-0-with-make-for-gcc/</a></p> <p>then put the sfml 2 folder with all the dependencies inside of your /usr/include/ folder and compile with <code>g++ main.o -o main -lsfml-graphics -lsfml-window -lsfml-system</code> and run with with <code>./main</code> it should work perfectly. I actually setup a key mapping in vim that compiles using that command and then runs it and its works flawlessly for me.</p>