Похожие чаты

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 ответов

12 просмотров

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?

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

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

А случайно нет ли в паскале штатной возможности передать указатель и количество туда где array of в качестве аргумента?
zamtmn
25
@LGCYMan @JustinKKW Q/A List 1. this part confuses me on #8: "From there, a bridge between erc20 LGXY and erc20 LGXY will be out once that swap is closed." does this mean ...
Sig | LGCY | BattleVerse L1 | BitWin
1
Maine b!nance se wazirx mein 200$ deposit kiya and usdt/inr pair mein sell krdiya 1% tds kata and maine inr withdrawal krliya , ab usme 30% tax dena hoga kya?
Xanime
14
How do I get FrxEth? Need it to execute a contract
Abdullah $BTON
18
Did @Beeker really get banned? That's ridiculous. He's one of the few left here with half a brain and you might not always like his narrative @dgb_ycagel , but he often keeps ...
Leroy Gerrits
1
Anyone here suffers from unexplained aural migraines, who would be up for talking for a bit? Doesn't *have* to be aural, but I am not asking about headaches, I mean actual mi...
Martin Rys
58
Добрый день ,ребята! А подскажите пожалуйста. Есть вот у меня макбук 13 2015 года,но на нём разбит экран,всё остальное в идеале. Стоит последняя МакОсь Монтерей 12. Можно ли ...
AR
7
Ну раз я пока тут, задам пару глупых вопросов. Зачем писать на ассемблере если компилятор довольно умный, а ассемблер много времени занимает? В каких прикладных задачах сейчас...
Максим Рябцев
19
async login(req: Request, res: Response, next: NextFunction): Promise<void> { try { const { errors, input } = await RequestValidator(LoginRequest, req.body...
. .
1
A couple thoughts from a random internet stranger: 1. If you want this project to gain traction you cannot keep being negative. If I just came here after finding out about Kd...
Eric Wild
46
Карта сайта