I'd like to link two libraries, foo
and bar
, into my dynamic library mylib
. The issue is that foo
depends on version A of baz
and bar
depends on version B of baz
. I cannot link to both versions of baz
without conflicting symbols. The versions of baz
don't seem to be backwards-compatible either, so I can't simply clobber over with the newer version's symbols. foo
and bar
can be built either statically or dynamically.
More concretely, I'd like to link librealsense and the latest version (0.0.6) of libuvc. However, librealsense has a heavily modified version of 0.0.5 of libuvc internally. That's why I can't simply swap out 0.0.5 for 0.0.6.
What is the right way of handling this situation?