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

Author Topic: Organizing DLL Files from SFML?  (Read 1421 times)

0 Members and 1 Guest are viewing this topic.

Luponius

  • Newbie
  • *
  • Posts: 22
    • View Profile
Organizing DLL Files from SFML?
« 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 =]

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Organizing DLL Files from SFML?
« Reply #1 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.
Laurent Gomila - SFML developer

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Organizing DLL Files from SFML?
« Reply #2 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.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Luponius

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: Organizing DLL Files from SFML?
« Reply #3 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.