dynamic_cast an interface from a shared library which was loaded by lt_dlopen(libtool) doesn't work

后端 未结 2 1062
礼貌的吻别
礼貌的吻别 2021-01-22 01:19

This is about plugin features in my program. I need a C++ class(and object) in a plugin could be used by main module through an interface. The interface inheritance like this:

2条回答
  •  渐次进展
    2021-01-22 01:56

    you might try building with -Wl,--export-dynamic linker argument. I recall needing this argument when encountering similar behavior.

提交回复
热议问题