libstdc++ both statically and dynamically linked through different libraries

77 views Asked by At
  1. My executable dynamically links two libraries (d1.so and d2.so).
  2. d1.so statically links to libstdc++.
  3. d2.so dynamically links to libstdc++.

Assuming d1.so is loaded first, which stdlib (dynamic or static) method will get called in following scenarios,

  1. d1.so makes a call to stdlib method.
  2. d2.so makes a call to stdlib method.
  3. Executable makes a call to stdlib method.

If both d1.so and d2.so are compiled by different compiler versions, can it cause problems in runtime due to mixing of stdlib?

0

There are 0 answers