dll's needed to launch application
Hello people. I wrote an application and it needs mingwm32.dll .... to launch. I've copied them all to the application directory and that works. But that is not the way I want. I want those dlls to be situated in my application's /lib subdirectory. How should I tell my application about those dlls?
Re: dll's needed to launch application
It is not possible for application to do so, it is managed by OS. The dlls need to be either in the same directory as the application's running directory, or in one of the directories configured in system path.
You can have dlls in /lib (or wherever you want), if you access them by QLibrary (which in your case I assume is not the case)
Re: dll's needed to launch application
Thanks for your answer Santosh. Yes you are quite right that is not the case. Can you explain how I can edit the PATH variable with Qt tools?
Re: dll's needed to launch application
PATH variable is something which is manged by OS, not by Qt
Re: dll's needed to launch application
It is possible to place that DLL inside your application executable, but I forget how. If you really don't want it in the same directory as your executable researching that may be an option.