C++: How to create two interdependent shared libraries?
问题 Suppose I want to compile a.cpp and b.cpp into two separate shared libraries liba.so and libb.so and the two libraries are interdependent, how can I go about doing it? 回答1: Although I can think of several hack-ish way to implement something like that, they all have their own disadvantages, and the whole issue is moot for the following reason. Although you did not explicitly mention which platform you use -- and details of shared library implementation is highly platform specific, so that, in