How to find libxxx.a version number

I probably can't find the right search words, but I can't find out how to get the version number of the static (or dynamic) lib library without writing a program. Of course, there must be a unix application (with the equivalent on os x) for this. (I tried the finder information and he told me that the .a files are files that need to be opened with a text relay!).

Thank.

+5
source share
1 answer

A static lib is just an archive of object files; it does not have an implicit version number. Many libraries will have an explicit version number, some character, such as FOO_VERSION_ with the contents of "1.2.3", but obviously there is no general way to find such characters.

- . : "" "". . Man- otool, , , -l ( LC_ID_DYLIB) -L ( ).

+4

All Articles