Reputation: 11
I am coding in C++, using the SFML, since a little bit of time and everything has been running fine. This morning I've been using the type sf::Image and some functions on that type, such as getPixel. Then, the compilation works fine, however, when I try to run it, I get the missing dll error on sfml-graphics-d-2.dll.
I looked in the folder and I could see that indeed, there was no such dll! There was his brother sfml-graphics-2.dll instead however. Why is it asking for the dll that I don't have :( ?
Informations: I use code::blocks. Linkers seems to be ok : "C:\Program Files (x86)\SFML-2.3\lib\libsfml-graphics-d.a" for the debug "C:\Program Files (x86)\SFML-2.3\lib\libsfml-graphics.a" for the release I use the SFML2. I'm on Windows 8. My compiler is GCC MinGW. I can't find sfml-graphics-d-2.dll on my computer (because I had to compile the SFML using Cmake, and it only generates files like sfml-graphics-2.dll, not like sfml-graphics-d-2.dll)
Thank you very much if you can help! :-)
Upvotes: 0
Views: 3626
Reputation: 31
The -d
in sfml-graphics-d-2.dll
stands for debug, so when you are building SFML, you need to change the build target from Release to Debug.
The Debug build target should have been generated by CMake when you ran it.
Upvotes: 1