Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我有一个静态库 A,它使用静态库 B。然后假设我有一个可执行 C,它使用库 A 和 B 中的东西。
我应该让 C 显式链接与库 A 和 B,还是只链接库 A,因为 A 与 B 链接?
附言。我正在使用 Visual Studio 2008。
C 必须与 A 和 B 链接,静态库无法“使用”另一个静态库。为 A 构建 .lib 文件时,它将仅包含对 B 的外部引用,它不会引入 B 库中的实际代码。