no version information available
在运行程序时出现这个问题。我找到一下说明:
The "no version information available" means that the library version number is lower on the shared object. For example, if your major.minor.patch number is 7.15.5 on the machine where you build the binary, and the major.minor.patch number is 7.12.1
这个说明中, 问题在于次版本号和发行版本号不对。
可在程序readelf 可以看到只i记录了动态库的主版本 号, 没有记录次版本号和发行版本号信息。 那么ld是如何得知在编译时使用的库的次版本号和发行版本号从而报错的呢?