<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>You are using some WinPcap specific functions (in particular
the remote extensions).</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Please include the following preprocessor definitions in your
project file: </FONT></DIV>
<DIV><FONT size=2>WPCAP</FONT></DIV>
<DIV><FONT size=2>HAVE_REMOTE</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Regarding the third error, it has nothing to do with WinPcap.
It just tells you that you defined your wmain as "int wmain(...)" but you forgot
to return a value from wmain with "return 0;" or similar.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Have a nice day</FONT></DIV>
<DIV><FONT size=2>GV</FONT></DIV>
<DIV> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=dinh107@yahoo.com href="mailto:dinh107@yahoo.com">Tran Thanh Dinh</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=winpcap-users@winpcap.org
href="mailto:winpcap-users@winpcap.org">winpcap-users@winpcap.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, May 29, 2006 2:26 AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Winpcap-users] problem
compiling winpcap example</DIV>
<DIV><BR></DIV>Hi,<BR><BR> I tried also to compile the example of
retrieving device, and the error message I get is:<BR>error C2065:
'PCAP_SRC_IF_STRING' : undeclared identifier<BR>error C3861:
'pcap_findalldevs_ex': identifier not found <BR>error C2561: 'wmain' :
function must return a value<BR><BR> The same error is displayed with
cygwin and visual C++. I found one same topic in the archive but I dont know
what the final solution is. Could you help me out please?<BR><BR>
Concerning the basic_dump example,I use Visual C++ to compile it successfully
but while running, I always get the Debug Assertion Failed. <BR><BR>
Thanks for your help,<BR> Best regards,<BR><BR>Dinh Tran
<BR><BR><B><I>Gianluca Varenni <gianluca.varenni@cacetech.com></I></B>
wrote:
<BLOCKQUOTE class=replbq
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR>
<STYLE></STYLE>
<DIV><FONT size=2>Probably the Borland compiler doesn't add a definition of
_WIN32 (or WIN32, I don't remember) in the preprocessor
definitions.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Try to add those definitions to your preprocessor
directives. Moreover, consider that we do not provide any support for
Borland compilers, no I'm not sure if the lib files we provide (that
are for Microsoft Visual C compilers) are usable by the Borland
compiler/linker.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Have a nice day</FONT></DIV>
<DIV><FONT size=2>GV</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=dinh107@yahoo.com href="mailto:dinh107@yahoo.com">Tran Thanh
Dinh</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=winpcap-users@winpcap.org
href="mailto:winpcap-users@winpcap.org">winpcap-users@winpcap.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, May 26, 2006 7:46
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Winpcap-users] problem
compiling winpcap example</DIV>
<DIV><BR></DIV>
<DIV> Hi,</DIV>
<DIV> </DIV>
<DIV> I installed winpcap and downloaded the developer package. In
order to run the examples given in developer package, I use Borland
compiler (bcc32). I followed the instruction to add the linker to the lib
and include. But I still dont succeed to compile the examples; and get
error:</DIV>
<DIV>pcap.h: unable to open include file 'sys/time.h'</DIV>
<DIV>pcap-bpf.h: , expected </DIV>
<DIV>...., etc</DIV>
<DIV> </DIV>
<DIV> I checked the pcap.h file and actually in this one
there's:</DIV>
<DIV>#if defined(win32)</DIV>
<DIV>...</DIV>
<DIV>#elif defined(MSDOS)</DIV>
<DIV>...</DIV>
<DIV>#else /*UNIX*/</DIV>
<DIV>#include <sys/types.h></DIV>
<DIV>#include <sys/time.h></DIV>
<DIV>#endif</DIV>
<DIV> </DIV>
<DIV> I am not running on a Unix, why did I have error with
"sys/time.h" please?</DIV>
<DIV> </DIV>
<DIV> Thanks for your help,</DIV>
<DIV> Best regards,</DIV>
<DIV> </DIV>
<DIV>Dinh</DIV><BR><BR>
<DIV>
<DIV> </DIV></DIV>
<DIV>
<HR SIZE=1>
Yahoo! Messenger with Voice. <A
href="http://us.rd.yahoo.com/mail_us/taglines/postman1/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com">Make
PC-to-Phone Calls</A> to the US (and 30+ countries) for 2¢/min or less.
<DIV>
<HR>
<DIV></DIV>_______________________________________________<BR>Winpcap-users
mailing
list<BR>Winpcap-users@winpcap.org<BR>https://www.winpcap.org/mailman/listinfo/winpcap-users<BR></DIV></DIV></BLOCKQUOTE>_______________________________________________<BR>Winpcap-users
mailing
list<BR>Winpcap-users@winpcap.org<BR>https://www.winpcap.org/mailman/listinfo/winpcap-users<BR></BLOCKQUOTE><BR><BR><BR>
<DIV>
<DIV> </DIV></DIV>
<P>
<HR SIZE=1>
<A
href="http://us.rd.yahoo.com/mail_us/taglines/postman3/*http://us.rd.yahoo.com/evt=39666/*http://messenger.yahoo.com">Yahoo!
Messenger with Voice.</A> PC-to-Phone calls for ridiculously low rates.
<P>
<HR>
<P></P>_______________________________________________<BR>Winpcap-users
mailing
list<BR>Winpcap-users@winpcap.org<BR>https://www.winpcap.org/mailman/listinfo/winpcap-users<BR></BLOCKQUOTE></BODY></HTML>