NO

Author Topic: WinPcap  (Read 4134 times)

thadmiller

  • Guest
WinPcap
« on: February 02, 2007, 12:52:47 AM »
I downloaded the WinPcap Developer's Pack (http://www.winpcap.org/devel.htm), but I'm having problems getting any of their examples to work.  For example, I loaded basic_dump.c, compiled as a console app, but the pcap-bpf.h generates all kinds of errors.

Am I missing some sort of compiler options, or is there something else I need to do?

-Thad

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2096
WinPcap
« Reply #1 on: February 02, 2007, 08:48:45 AM »
It seems that Pcap used the symbol WIN32 as target def, while PellesC uses _WIN32. To solve the problem try to define the symbol "WIN32" in project options->compiler->define preprocessor symbols.
It is better to be hated for what you are than to be loved for what you are not. - Andre Gide