how to call function in executable from my library?

前端 未结 2 906
悲哀的现实
悲哀的现实 2020-11-28 15:29

I have an executable and a dynamic library (.so). The library exports some symbols and executable calls it successfully. But I want to make possible to library call executab

2条回答
  •  盖世英雄少女心
    2020-11-28 15:34

    An easier way to achieve this is to have the executable register a function for later use by the library, the library stores a pointer to the function, and may call it at a later time.

提交回复
热议问题