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

Author Topic: ld.exe cannot find -lsfml-graphics-d  (Read 2592 times)

0 Members and 1 Guest are viewing this topic.

Arnadeep

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
ld.exe cannot find -lsfml-graphics-d
« on: April 10, 2021, 06:29:10 pm »
I am trying to add SFML libraries in CodeBlocks.
I followed all the tutorials properly added the search directories, Added the names in Linker settings (ommiting the lib prefix and .a suffix)
Everything done properly and checked many times.
But when I run a simple program thats given on their website it gives me these errors

ld.exe   cannot find -lsfml-graphics-d

Please help. All the search directories are added correctly still its giving this error.
I am 100 percent sure I followed the tutorials given on the Website correctly.
Please help.

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
Re: ld.exe cannot find -lsfml-graphics-d
« Reply #1 on: April 11, 2021, 03:34:34 pm »
Quote
All the search directories are added correctly still its giving this error.
Are you sure you added the library directory with sfml-graphics-d? Double-check, the error indicates that it is wrong.

How does the filesystem of that lib directory look?
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

kevin0211722@gmail.com

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: ld.exe cannot find -lsfml-graphics-d
« Reply #2 on: April 16, 2021, 06:14:45 pm »
I have same problem...

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10782
    • View Profile
    • development blog
    • Email
Re: ld.exe cannot find -lsfml-graphics-d
« Reply #3 on: April 16, 2021, 10:45:34 pm »
Same question applies, did you actually add the library path?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/