Exceptions across binary boundary

前端 未结 5 1371
生来不讨喜
生来不讨喜 2021-02-07 02:06

I know, this question has been asked quite some times, however I can\'t find a solution for my problem.

I have the following situation:

   A
  / \\
 /            


        
5条回答
  •  眼角桃花
    2021-02-07 03:00

    B is using it's own EException class definition V typeinfo for EException whereas C seems to use an Unresolved one ( the U means the type is undefined in the current translation unit and must be resolved by the loader and dynamic linker ).

    Verify that B is still a shared library and it is not linked statically whith A but dynamicaly, preventing C from findind A's stuffs, cause as I cant see B won't link the same type as A. Take care of your header ^^.

提交回复
热议问题