是否有一种方法来识别版本的c / c ++库? [英] Is there a way to identify version of c/c++ library?

查看:105
本文介绍了是否有一种方法来识别版本的c / c ++库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如,如何获取/usr/lib/libz.a的版本?如果可以获取其他有用的信息,如编译器/ arch等,这将是巨大的。

For example, how to get the version of /usr/lib/libz.a? It will be great if other useful information such as compiler/arch etc. can be fetched.

我想知道的原因是gcc总是说它忽略libz我提供在命令行,当我编译我的程序,并链接到特定版本的libz。 gcc认为/usr/lib/libz.a是正确的。

The reason I want to know this is that gcc always say it ignored the libz I offered in command line when I compile my program and linked with specific versioned libz. gcc think the /usr/lib/libz.a is a proper one.

推荐答案

C库没有自己的版本控制系统。最好的是,在图书馆里有一个符号告诉它。

C libraries do not have on their own a versioning system. At best, there is a symbol in the library that tells it.

这篇关于是否有一种方法来识别版本的c / c ++库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆