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)