SFML community forums

Help => General => Topic started by: Luponius on April 21, 2013, 02:45:14 pm

Title: Organizing DLL Files from SFML?
Post by: Luponius on April 21, 2013, 02:45:14 pm
Hi there, very simple question...

Is it possible to store the dll files such as sfml-audio-2.dll etc into their own folder called "bin", and still successfully refer to it from your program?  How would you go on about doing that?

Thanks =]
Title: Re: Organizing DLL Files from SFML?
Post by: Laurent on April 21, 2013, 03:18:47 pm
I think you would have to launch your program with a script that first adds "bin" to the PATH environment variable.
Title: Re: Organizing DLL Files from SFML?
Post by: eXpl0it3r on April 21, 2013, 03:21:09 pm
No it's not directly possible. What some projects do (e.g. protable apps), is providing some kind of launcher, so you start the launcher and the launcher calls the actual exe, which is within the bin directory next to the dlls. This could be a dedicated executable or just a script.
Title: Re: Organizing DLL Files from SFML?
Post by: Luponius on April 21, 2013, 06:12:25 pm
Ah! Fair enough, thanks for clearing that up,  I guess I'm not really in that much need of cleaning it up  :P  Visual does a good enough job of showing it up neatly anyways.