[Winpcap-users] cant compile example 'udpdump'
Gianluca Varenni
gianluca.varenni at cacetech.com
Mon Jan 16 01:15:26 GMT 2006
Hi Steve.
Have you defined WPCAP, WIN32 and possibly HAVE_REMOTE (if you are using the
pcap_remote examples) in the preprocessor definitions of your project?
Have a nice day
GV
----- Original Message -----
From: "Steve Mc Donnell" <glennconnelly at campus.ie>
To: <winpcap-users at winpcap.org>
Sent: Sunday, January 15, 2006 6:04 AM
Subject: [Winpcap-users] cant compile example 'udpdump'
Hi,
I'm having trouble compiling the 'udpdump' example with C++ Builder 6.
I've included the following files in the same folder and set the include
path to look in it:
wpcap.lib (converted with coff2omf)
libwpcap.a
pcap.h
bittypes.h
pcap-stdinc.h
pcap-bpf.h
udpdump.c
When I try to compile it I get a bunch of error messages from pcap.h and
pcap-bpf.h like:
[C++ Error] pcap.h(133): E2238 Multiple declaration for 'bpf_u_int32'
[C++ Error] pcap.h(127): E2344 Earlier declaration of 'bpf_u_int32'
[C++ Error] pcap.h(133): E2139 Declaration missing ;
[C++ Error] pcap.h(148): E2450 Undefined structure 'timeval'
[C++ Error] pcap-bpf.h(107): E2238 Multiple declaration for 'u_short'
[C++ Error] pcap-bpf.h(106): E2344 Earlier declaration of 'u_short'
[C++ Error] pcap-bpf.h(107): E2139 Declaration missing ;
[C++ Error] pcap-bpf.h(656): E2139 Declaration missing ;
I was able to compile the example code to get the device list before even
though it included pcap.h and pcap-bpf.h. But now even when I try compile
the device list program I get the above errors! What am I doing wrong?
Sorry for asking such a newbie question!
--
_______________________________________________
For the largest FREE email in Ireland (25MB) and 20MB of online file storage
space - Visit http://www.campus.ie
_______________________________________________
Winpcap-users mailing list
Winpcap-users at winpcap.org
https://www.winpcap.org/mailman/listinfo/winpcap-users
More information about the Winpcap-users
mailing list