什么是 A 文件?
A 文件包含可以被 C/C++ 源文件引用的函数库和头文件。它可能存储几个函数,也可能包含整个函数库,例如 3D 建模引擎。文件通常由 GNU ar实用程序创建。
静态库在类 Unix 系统中比在 Windows 系统中更常见。在 Windows 中,静态库通常使用“.lib”扩展名而不是“.a”扩展名。
注意:使用静态库可能会导致更大的程序文件,但与动态库相比,加载时间更快。
What is an A file?
An A file contains a library of functions and headers that may be referenced by a C/C++ source file. It may store only a few functions or may include an entire library of functions, such as a 3D modeling engine. A files are typically created by the GNU ar utility.
More Information
A static libraries are more common in Unix-like systems than in Windows systems. In Windows, static libraies typically use the ".lib" extension instead of the ".a" extension.
NOTE: Using static libraries may result in larger program files, but enables faster loading times compared to dynamic libraries.