Is there a way to Deferred binding symbol from dynamic library?

Dakota dakota at gmail.com
Tue Nov 26 10:34:07 UTC 2024


On Saturday, 23 November 2024 at 12:09:22 UTC, IchorDev wrote:
>
> Why not load the libraries at runtime and look the pointers up 
> with symbol names? Or do you really need the compiler to do it 
> for you?

Thanks for suggestion.

Because I need link some part static c library, they link global 
var by symbols name, I can not change this part.


What I can do is provide the symbol at runtime, I can not think a 
way to work around this at runtime.  (maybe for function, but not 
for global vars)



More information about the Digitalmars-d-learn mailing list