SFML community forums

Help => Graphics => Topic started by: curscascis on June 16, 2012, 08:12:35 pm

Title: sfml-graphics-d.dll Issues VS C++ 2010
Post by: curscascis on June 16, 2012, 08:12:35 pm
Hi guys

I am running Visual Studio 2010 c++ and I have the necessary DLL's in the debug folder. I have tried over a 100 times and no matter what I do it keeps showing that sfml-graphics-d.dll is missing from my computer when the program attempts to run. What could be causing this?
Title: Re: sfml-graphics-d.dll Issues VS C++ 2010
Post by: Jove on June 16, 2012, 08:27:19 pm
Tried putting them in the project folder?
Title: Re: sfml-graphics-d.dll Issues VS C++ 2010
Post by: Laurent on June 16, 2012, 08:30:59 pm
Is your executable in the Debug folder too? Does it work if you run it from the explorer (not from Visual Studio)?
Title: Re: sfml-graphics-d.dll Issues VS C++ 2010
Post by: eXpl0it3r on June 16, 2012, 09:09:18 pm
Visual Studio doesn't by default use the folder where the .exe gets build to as working directory instead it uses the folder where your .vcxproj file is generated to. So either change the paths in your project settings or copy the .dll next to your .vcxproj file. ;)
Title: Re: sfml-graphics-d.dll Issues VS C++ 2010
Post by: curscascis on June 17, 2012, 12:04:39 am
Again, its in the debug folder where VS automatically puts the exe with all the files. I put it in there with all the other necessary -d.dll's. If I put it into the project folder I get an error that simply says "This application was unable to start correctly (0xc0150002). Click OK to close the application" Any other ideas as to what might be causing this? If I can at least find the problem I can work a solution for it :3 I have also attempted to run it using the EXE and not VS, but it is the same exact thing.
Title: Re: sfml-graphics-d.dll Issues VS C++ 2010
Post by: curscascis on June 17, 2012, 04:20:40 am
Any Help Guys??
Title: Re: sfml-graphics-d.dll Issues VS C++ 2010
Post by: Mario on June 17, 2012, 11:08:23 am
It's just how Visual Studio handles running the files. They use the project directory as the working directory, but the actual binaries have to sit in the debug or release sub folders.

For testing, it should be sufficient to copy the libraries there. For releases just ensure they're in the same folder as the executable.

As an alternative, you could try building SFML as static libraries. That way linking will take a bit longer, the resulting executable will be bigger, but you won't need the dll files at all.
Title: Re: sfml-graphics-d.dll Issues VS C++ 2010
Post by: eXpl0it3r on June 17, 2012, 01:01:04 pm
"This application was unable to start correctly (0xc0150002). Click OK to close the application"

This isn't the same as not finding your DLL... ::)

Does that now mean your application finds the DLL but crashes because of something else?
If so what are you trying to run? An example? Or if it's your own code then provide it so we can figure out what's wrong.
Title: Re: sfml-graphics-d.dll Issues VS C++ 2010
Post by: curscascis on June 17, 2012, 05:29:44 pm
After hours of dealing with this I came across two different conclusions that solved my problem. Number 1 I needed atigtxx.dll and atigtxxold.dll in the folder with my executables. 2 I had to recompile the normal dll's with
VS 2010 To finish getting them to work properly. Apparently if you have an ATI graphics card you need those extra DLL's
Title: Re: sfml-graphics-d.dll Issues VS C++ 2010
Post by: curscascis on June 17, 2012, 05:30:18 pm
Thanks for the help though guys! I hope this thread will help someone else in the future.