[Winpcap-users] cant compile example 'udpdump'

Steve Mc Donnell glennconnelly at campus.ie
Sat Jan 21 19:02:05 GMT 2006


> Have you defined WPCAP, WIN32 and possibly HAVE_REMOTE (if you are 
> using the pcap_remote examples) in the preprocessor definitions of 
> your project?

Thanks for the advice but instead of sticking with Borland C Builder I tried compiling it in Visual C++ and it worked perfectly :) It's probably for the best if I stick to that then!
Thanks again,
Steve.


> 
> ----- 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
> 
> _______________________________________________
> Winpcap-users mailing list
> Winpcap-users at winpcap.org
> https://www.winpcap.org/mailman/listinfo/winpcap-users

>


-- 
_______________________________________________
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