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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - adawi

Pages: [1]
1
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.




Pages: [1]
anything