生成静态库可以理解为将一个对.o文件的归档。将一个或多个.o文件打包生成.a文件。 可以使用ar工具,例如: ➜ test gcc -Wall -c hello.c -o hello.o ➜ test ar rcs libhello.a hello.o ➜ test ls -l libhello.a -rw-rw-r-- 1 men...
auto 存储类 register 存储类 static 存储类 extern 存储类 存储类定义 C 程序中变量/函数的范围(可见性)和生命周期。这些说明符放置在它们所修饰的类型之前。下面列出 C 程序中可用的存储类: auto register static extern auto 存储类 auto 存储类是所有局部变量默认 的存储...