I also noted that pcap_open is missing in pcap.h, resulting in a warning while compiling (with VS6); have I missed some include / define ?
Andrea
Gianluca Varenni wrote:
----- Original Message ----- From: "Alex Narinsky" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 03, 2004 11:01 PM
Subject: [WinPcap-users] GNUMake is not working for 3.1
The directories inside examples contain the workspace file for VC++ and GNUMake for gcc. VC++ compiles projects fine. GNUMake results in errors.
For example, even if I additionally specify -DWPCAP -DHAVE_REMOTE in the gcc flags I am still getting: /cygdrive/c/wpdpack_3_1/WpdPack/Examples/pcap_filter/pcap_filter.c:95: undefined reference to `_pcap_open'
GNU Make in 3.0 works fine
Hi.
This is a known problem with the examples and cygwin: the lib file for cygwin (libwpcap.a) does not export pcap_open (together with all the stuff related to remote capture, i.e. code under #define HAVE_REMOTE), because cygwin does not support some new socket APIs used by the wpcap.dll code (getnameinfo and gai_strerror)I don't know if they have added it in the last month or so, I haven't checked. As a consequence, gcc fails to link those examples (the examples do compile under VC6).
WinPcap 3.0 did not have such problems because the example did not make use of pcap_open.
Have a nice day GV
Thank you for feedback
Alex Narinsky
================================================================== This is the WinPcap users list. It is archived at http://www.mail-archive.com/[EMAIL PROTECTED]/
To unsubscribe use mailto: [EMAIL PROTECTED] ==================================================================
================================================================== This is the WinPcap users list. It is archived at http://www.mail-archive.com/[EMAIL PROTECTED]/
To unsubscribe use mailto: [EMAIL PROTECTED]
==================================================================
================================================================== This is the WinPcap users list. It is archived at http://www.mail-archive.com/[EMAIL PROTECTED]/
To unsubscribe use mailto: [EMAIL PROTECTED]
==================================================================
