How to call a function from a shared library?

前端 未结 3 1487
暗喜
暗喜 2020-12-08 01:11

What is the easiest and safest way to call a function from a shared library / dll? I am mostly interested in doing this on linux, but it would be better if there were a plat

3条回答
  •  -上瘾入骨i
    2020-12-08 01:59

    On Linux you need to use dlsym. See an example at the end of the page. On Window: GetProcAddress.

提交回复
热议问题