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 和 .h 文件。怎么做?
那将失败。编译器在编译中至少需要 h 文件。
对于存档,您可以..理论上ld手动调用,但这一点都不好,因为编译器不会看到 a 文件,并且可能会给您关于缺少符号的错误
ld