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 2051 times)

0 Members and 1 Guest are viewing this topic.


  • 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 »


  • SFML Team
  • Hero Member
  • *****
  • Posts: 10224
    • 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
Nightly Builds: https://www.nightlybuilds.ch/
Dev Blog: https://dev.my-gate.net/
Thor: http://www.bromeon.ch/libraries/thor/