我有一个小程序,我使用leptonica
.. 但是我如何检查安装了哪个版本?
#include <leptonica/allheaders.h>
Find centralized, trusted content and collaborate around the technologies you use most.
Learn moreTeams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more一切都在链接时完成。
如果您使用动态链接,您可以以编译器相关的方式指定要链接的库的版本。例如,请参阅这个问题以了解它是如何使用 GCC 完成的。
如果您使用静态链接,那么您知道您构建的版本是因为您自己将源代码添加到项目树中,并且每次构建可执行文件时都必须构建库。
您无法从 API 获取 leptonica 版本。