WinPcap: the Free Packet Capture Architecture for Windows


Last modified: Monday, March 26, 2001 10.48

Compiling wpcap

System Requirement:

  • Microsoft Visual C++ 6.0 compiler.

Project files are in the directory winpcap\wpcap\prj of the winpcap source code distribution. Load the project from the Visual C++ 6.0 IDE and build the program. The output file wpcap.lib will be generated in winpcap\wpcap\lib\. The output dll wpcap.dll will be generated in winpcap\wpcap\prj\release or winpcap\wpcap\prj\debug depending on the type of binary that is being generated.

NOTE: in the folder winpcap\wpcap\libpcap\win32\prj there is a project that can be used to compile a reduced dll with all the calls of libpcap, but without the wpcap-specific functions. The output files will be winpcap\wpcap\libpcap\lib\libpcap.lib and winpcap\wpcap\libpcap\win32\prj\release\libpcap.dll (or winpcap\wpcap\libpcap\win32\prj\debug\libpcap.dll)

The project can be compiled indifferently in Windows 95, 98,ME,NT or 2000. The output files are system-independent.