<!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>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<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>
<P>
<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.
<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>