[Winpcap-users] problem compiling winpcap example
    Gianluca Varenni 
    gianluca.varenni at cacetech.com
       
    Fri May 26 15:54:12 GMT 2006
    
    
  
Probably the Borland compiler doesn't add a definition of _WIN32 (or WIN32, I don't remember) in the preprocessor definitions.
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.
Have a nice day
GV
  ----- Original Message ----- 
  From: Tran Thanh Dinh 
  To: winpcap-users at winpcap.org 
  Sent: Friday, May 26, 2006 7:46 AM
  Subject: [Winpcap-users] problem compiling winpcap example
    Hi,
    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:
  pcap.h: unable to open include file 'sys/time.h'
  pcap-bpf.h: , expected 
  ...., etc
    I checked the pcap.h file and actually in this one there's:
  #if defined(win32)
  ...
  #elif defined(MSDOS)
  ...
  #else /*UNIX*/
  #include <sys/types.h>
  #include <sys/time.h>
  #endif
    I am not running on a Unix, why did I have error with "sys/time.h" please?
    Thanks for your help,
    Best regards,
  Dinh
------------------------------------------------------------------------------
  Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
------------------------------------------------------------------------------
  _______________________________________________
  Winpcap-users mailing list
  Winpcap-users at winpcap.org
  https://www.winpcap.org/mailman/listinfo/winpcap-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20060526/a7580a48/attachment-0001.htm
    
    
More information about the Winpcap-users
mailing list