为什么winpcap需要.lib和.dll运行? [英] Why winpcap requires both .lib and .dll to run?
本文介绍了为什么winpcap需要.lib和.dll运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可以在这里看到规格:
http://www.winpcap.org/docs/docs_40_2/html/group__wpcapsamps.html
这很奇怪, code> .lib 或 .dll
是否足够IMO,为什么需要两个?
It's very strange,either .lib
or .dll
is enough IMO,why does it require both?
推荐答案
它不仅与winpcap,所有外部库都是这样的。
Its not only with winpcap, all external libraries are like that.
- 当您编译使用特定库的源代码时,您需要该库中的头文件
*。h
,您将获得*。o
文件 - 将这些
*。o
文件链接到可执行文件时,您将需要* .lib
或*。dll.a
文件。 - 当您运行这些可执行文件时,您将需要
*。dll
文件
- When you compiles your source codes which using particular library, you need header files
*.h
from that library, and you will get*.o
files - When you link those
*.o
files to executables, you will need*.lib
or*.dll.a
files. - When you run those executable files, you will need
*.dll
files
这篇关于为什么winpcap需要.lib和.dll运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文