Похожие чаты

Guys, you know how linux has rpath, where you can

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?

6 ответов

25 просмотров

Well you could do run-time dynamic linking with LoadLibraryA() or LoadLibraryW()

Brian- Автор вопроса
Manav | avoid unnecessary messaging me
Well you could do run-time dynamic linking with Lo...

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.

Brian
The thing is that the dependncy libB is a dependen...

It should find the dependent libs, in the worst case senario you'll have to add where LibB is to PATH

Brian- Автор вопроса
Manav | avoid unnecessary messaging me
It should find the dependent libs, in the worst ca...

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.

Brian- Автор вопроса
Manav | avoid unnecessary messaging me
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?

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта