Author Topic: WinPcap  (Read 3087 times)


  • Guest
« on: February 02, 2007, 12:52:47 am »
I downloaded the WinPcap Developer's Pack (, 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?


Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 1769
« 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.