Pelles C forum

C language => Beginner questions => Topic started by: thadmiller on February 02, 2007, 12:52:47 AM

Title: WinPcap
Post by: thadmiller 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
Title: WinPcap
Post by: frankie 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.