如果想查看 .a 静态库中的 .o 文件及函数接口信息,可以尝试下 nm 命令。在 man page 中查看这个命令的信息,截取一段来看,如下所示:
Nm displays the name list (symbol table) of each object file in the argument list. If an argument is an archive, a listing for each object file in the archive will be produced. File can be of the form libx.a(x.o), in which case only symbols from that member of the object file are listed. (The parentheses have to be quoted to get by the shell.) If no file is given, the symbols in a.out are listed.