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:>
you might try building with -Wl,--export-dynamic linker argument. I recall needing this argument when encountering similar behavior.
-Wl,--export-dynamic