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

Author Topic: DSO missing from command line  (Read 2048 times)

0 Members and 1 Guest are viewing this topic.

Al84

  • Newbie
  • *
  • Posts: 1
    • View Profile
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.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: DSO missing from command line
« Reply #1 on: September 07, 2024, 04:56:58 pm »
You aren't linking sfml-system in the compilation command you've provided.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/