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

Author Topic: Sample SFML code on Linux giving error messages: "cannot find -lsfml-graphics-d"  (Read 2303 times)

0 Members and 1 Guest are viewing this topic.

siegeMachine

  • Newbie
  • *
  • Posts: 1
    • View Profile
I followed the SFML and Linux tutorial and wanted to use code blocks. There was a link to the code blocks for windows tutorial that said it should be similar. So I did everything and the IDE gave me these error messages:

cannot find -lsfml-graphics-d 
cannot find -lsfml-window-d
cannot find -lsfml-system-d

I'm using ubuntu 21.04  and SFML 2.5.1 

EDIT: Removing the -d worked.
« Last Edit: August 26, 2021, 02:57:28 pm by siegeMachine »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10801
    • View Profile
    • development blog
    • Email
You probably don't have the debug libraries on Linux. Remove the -d suffix and it should probably work.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/