How to change dll folder location?

I program in D and I need to load libpq.dll. It loads successfully. The problem is that after starting the application that is trying to find libintl.dll. If I put it in the bin folder, it will work fine. The problem is that I want to change its location and move it to the \ lib folder.

How can i do this?

I do not want the second lib to be specified at compile time, but my code for loading the first library is the following ^

DerelictPQ.load(buildPath(getcwd ~ "\\libs\\libpq.dll"));
+4
source share

Source: https://habr.com/ru/post/1568815/


All Articles