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

Author Topic: Unable to find .dll files, cannot find -lsfml-graphics-d | previously all worked  (Read 1743 times)

0 Members and 1 Guest are viewing this topic.

adawi

  • Newbie
  • *
  • Posts: 1
    • View Profile
Hello, I am facing the following error in my project. I've been working on my SFML projects for the past year and everything worked like a charm until in one project I tried linking SFML via a relative path, which ultimately failed. I am now unable to correctly link SFML in any way to ANY project and I get the same errors always. That includes using the full path to SFML, both the old 2.5.1 which worked fine before and the new 2.6.1 which I recently installed, after I started getting the errors. I suppose I must have changed some crucial global CB setting which I can't remember, but why reinstalling the whole thing doesn't help then?

Before rebuilding the project, the error was ".dll files missing" (sfml graphics and window). After rebuilding, it can't find -lsfml-graphics-d and the other two -d files. I'm using the dynamic version of SFML.

The project is prepared exactly as stated in the very starting part of the tutorial.
https://www.sfml-dev.org/tutorials/2.6/start-cb.php

I have searched the forum only to find solutions which require me to do what I already have done (i.e. below).
https://en.sfml-dev.org/forums/index.php?topic=28993.msg179527#msg179527

I haven't found anything helpful in google/SO either.

It's been tens of hours of pointless troubleshooting from my side now and I can't get anything important done, because suddenly my CB/SFML tandem stopped working and is dead. I did reinstall CB, or rather update it to the newest version to try and get it back to work. I did try using the older SFML version I had been using before (2.5.1) and the newer 2.6.1, but neither one works now. Please, please help me get back to work. Normally. I mean, I would like everything to be as it was before, not to put the .dll files in the same folder as the .exe file.

I use the following download for SFML 2.6.1: "GCC 13.1.0 MinGW (DW2) - 32-bit".

I use the newest release of CB (installed from codeblocks-20.03mingw-32bit-setup.exe).

The include lines in the code that I tried:
- #include "SFML/Graphics.hpp"
- #include <SFML/Graphics.hpp>

My system is Windows 10. The project also uses <windows.h> and is an attempt to mixSFML with WinAPI

Relevant screenshots, I hope that all of them, are attached.

Thank you in advance for your time.



« Last Edit: May 25, 2024, 12:25:26 pm by eXpl0it3r »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Make sure your E:\SFML-2.6.1\lib directory contains the needed files (e.g. libsfml-graphics-d.a).

Make sure the compiler is actually configured to the expected version.

I use the following download for SFML 2.6.1: "GCC 13.1.0 MinGW (DW2) - 32-bit".

I use the newest release of CB (installed from codeblocks-20.03mingw-32bit-setup.exe).
Those don't match, see the links in the red box on the SFML Download page, that links you to the exactly matching compiler.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything