Here is a C++ project, and its lib dependency is
Hello.exe -> A.so -> B.a
B.a -> A.so
Hello.exe depends on B.a and A.so, and B.a depends on A.so. GCC compiler will link Hello.exe successful?
And if there is a b.cc file in B.a which includes a header file a.h of A.so, and also uses some interfaces of A.so, then with right "include" path setting, compiling b.cc to b.o should be successful. But if without A.so as input, the link of B.a would be failed, right?
gcc -c b.cc -I../A/include ;; successful gcc -a B.a b.o ;; fail
Where I can find detail library link documents about these complex reference relationship ...
Thanks.