dynamic_cast fails when used with dlopen/dlsym

前端 未结 4 1048
灰色年华
灰色年华 2020-12-09 19:04

Intro

Let me apologise upfront for the long question. It is as short as I could make it, which is, unfortunately, not very short.

Setup

I have de

4条回答
  •  执笔经年
    2020-12-09 19:35

    In general, gcc does not support RTTI across dlopen boundaries. I have personal experience with this messing up try/catch, but your problem looks like more of the same. Sadly, I'm afraid that you need to stick to simple stuff across dlopen.

提交回复
热议问题