jeudi 14 février 2019

Do circularly static linked libs result in a bigger output size?

I have multiple static libraries in C++. For example:

  • lib a
  • lib b
  • lib c

lib a uses lib c and lib c uses a and b uses both. We have a circular dependencies between the libs. Because they are static libs is the output size bigger if they are circular, because they are included both in b. a is included in c and c in a sode the code is in b twice :(

Can somebody explain me how this works?

And if a, b and c would be linked to d would be the code of c inside d twice too?

Aucun commentaire:

Enregistrer un commentaire