specify custom path to search for shared libs even when compiling for another shared lib, eg: compile libA and set rpath to search for libB which is also it's dependency another shared lib.
Now in windows, how can this be replicated?
Well you could do run-time dynamic linking with LoadLibraryA() or LoadLibraryW()
The thing is that the dependncy libB is a dependency of LibA which my own libC uses, I have no control on how LibA loads LibB.
It should find the dependent libs, in the worst case senario you'll have to add where LibB is to PATH
Haha, the thing is LibC, my lib is loaded via LoadLibrary() Api, with the executable, as it's a plugin, and it's not in the same directory as the executable, so the path, LibC's dependencies LibA and LibB are in the same directory as LibC.
the search order should take care of it afaik
I used the /DELAY:LibB.dll to delay loading LibB, but maybe if there was a way to increment the path during runtime, so that when a function is invoked from LibB then it will search path then?
Обсуждают сегодня