为什么WinPcap的同时需要的.lib和.dll运行? [英] Why winpcap requires both .lib and .dll to run?

查看:142
本文介绍了为什么WinPcap的同时需要的.lib和.dll运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

规格可以看这里:

http://www.winpcap.org/docs/docs_40_2/html/ group__wpcapsamps.html

这是非常奇怪的,无论是的.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.


  • 当你编译它使用特定的库源$ C ​​$ CS,你需要的头文件 *的.h 从库中,你会得到 * 0 文件

  • 当你链接的 * 0 文件,可执行文件,则需要 *。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屋!

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