Is it possible for a static library to link to another static library? For example I would like to have the following workspace structure:
Application
Static Library 1
Static Library Shared
Static Library 2
Static Library Shared
Any thoughts?
Static libraries don’t link each other. You need a final executable (in this case the app) or something for all the symbols in the static libraries to resolve. You can have
liba.areference symbols that are going to be inlibb.a, but you’ll probably need bothliba.aandlibb.ato link the app. What ultimately ends up being needed depends on the app.