Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Al84

Pages: [1]
1
Window / DSO missing from command line
« on: September 07, 2024, 03:45:28 am »
 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.

Pages: [1]
anything