News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

WinPcap

Started by thadmiller, February 02, 2007, 12:52:47 AM

Previous topic - Next topic

thadmiller

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

frankie

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