[Winpcap-users] cant compile example 'udpdump'
Steve Mc Donnell
glennconnelly at campus.ie
Sun Jan 15 14:04:48 GMT 2006
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
More information about the Winpcap-users
mailing list