知道 .lib 是静态的还是导入的 [英] know if .lib is static or import

查看:12
本文介绍了知道 .lib 是静态的还是导入的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有从 C 代码编译的 .lib 文件.我如何知道在运行时是否需要这个独立的静态库或仅需要导入库和 DLL?有没有我遗漏的 dumpbin 选项?

I have .lib file compiled from C code. How I know if this self-contained static library or just an import lib and DLL will be needed at runtime? Is there some dumpbin option I'm missing?

推荐答案

使用 lib 命令.如果它是静态的,lib 会向你展示里面的一堆 .obj 文件.如果它是隐含的,则不是这样.

Use the lib command. If it's static, lib will show you a pile of .obj files inside. Not so if it's am implib.

lib /list foo.lib

会做的.

另见:

https://docs.microsoft.com/en-us/cpp/build/reference/managing-a-library

这篇关于知道 .lib 是静态的还是导入的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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