客户无需安装如何编译PCAP程序
How to compile PCAP programm without installation require for costumer
我想编译我的基于 libpcap 和 winpcap 的程序,但我注意到其他用户也必须在我的程序中安装 WinPCAP。如何将所有必需的文件编译成一个程序?
简答:你不能。
长答案来自 WinPcap 邮件列表中的一些旧 wisdom:
There is a way to make packet.dll
and wpcap.dll
static: rebuild them as
such. You just sacrifice the ability to do anything, since all the
stuff in wpcap.dll
requires packet.dll
, and all the stuff in packet.dll
requires the kernel driver. And the kernel driver won't exist without
the full winpcap installation.
It includes (among other things) a kernel driver that cannot be transformed to a static library.
There is no way on Windows to make a kernel driver part of a static
library. (Or a DLL
, for that matter.) If the kernel driver is
required, then it's hard to get anything done without it.
我想编译我的基于 libpcap 和 winpcap 的程序,但我注意到其他用户也必须在我的程序中安装 WinPCAP。如何将所有必需的文件编译成一个程序?
简答:你不能。
长答案来自 WinPcap 邮件列表中的一些旧 wisdom:
There is a way to make
packet.dll
andwpcap.dll
static: rebuild them as such. You just sacrifice the ability to do anything, since all the stuff inwpcap.dll
requirespacket.dll
, and all the stuff inpacket.dll
requires the kernel driver. And the kernel driver won't exist without the full winpcap installation.It includes (among other things) a kernel driver that cannot be transformed to a static library.
There is no way on Windows to make a kernel driver part of a static library. (Or a
DLL
, for that matter.) If the kernel driver is required, then it's hard to get anything done without it.