OpenGL Hellow world (SFML) won't compile!

g++ new.cpp -lGLEW -lsfml-window -lGL
/usr/bin/ld: /tmp/ccvlqoGI.o: undefined reference to symbol '_ZN2sf6StringC1EPKcRKSt6locale'
//usr/lib/x86_64-linux-gnu/libsfml-system.so.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status


this is what i get when trying to compile https://open.gl/drawing example :|


Topic archived. No new replies allowed.