Hello I am new to sfml and opengl. I am trying to compile code from the Learn OpenGL book.
when I compile my cpp file with (please see attached file)
g++ sfmlwindow.cpp -lsfml-window -lsfml-window -lGLEW -lglut
I get the following message
/usr/bin/ld: /tmp/ccCzK9F8.o: undefined reference to symbol '_ZN2sf6StringC1EPKcRKSt6locale'
/usr/bin/ld: /lib/x86_64-linux-gnu/libsfml-system.so.2.5: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
can anyone explain to me what this error means and how to fix it?
I am using bodhi linux 5.15.0-78-generic
Thanks.