If both library A and library B are static then you must specify them both in the final linker command line, regardless of whether you are linking a dynamic library or an executable.
↧