File version information
问题 How can I add version information to a file? The files will typically be executables, .so and .a files. Note: I'm using C++, dpkg-build and Ubuntu 8.10 if any of those have support for this. 回答1: For shared objects pass -Wl,soname,<soname> to gcc, or -soname <soname> to ld. Executables and static libraries do not have version information per se, but you can add it to the filename if you like. 回答2: Linux executables do not have version information like Windows have...the only way I can think