Linking with multiple versions of a library

前端 未结 3 1785
没有蜡笔的小新
没有蜡笔的小新 2020-12-13 02:34

I have an application that statically links with version X of a library, libfoo, from thirdparty vendor, VENDOR1. It also links with a dynamic (shared) library, libbar, from

3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-13 03:31

    Sorry no. My understanding of the way that Linux (and possibly most *nixes) is that that is not possible. The only 'solution' for your problem I can think of, is if you create a proxy app, which exposes what you need from libbar in the form of some IPC. You can then make that proxy load the correct version using LD_LIBRARY_PATH or something simmilar.

提交回复
热议问题