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

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

问题描述

我有从C代码编译的 .lib 文件。我如何知道在运行时是否需要这个独立的静态库或只是导入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

将会这样做。

另见:

http://msdn.microsoft.com /en-us/library/e17b885t(v=vs.80).aspx

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

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