[Winpcap-users] Problems in compiling WinPcap

Varuna De Silva varunax at gmail.com
Mon Sep 10 12:36:34 GMT 2007


Hi,

I am interested in adding support for my device, in Winpcap and
therefore I need to compile wpcap.dll from source after having add
my own code.

But before that I just compiled the source code and I came up with
some problems.

I use MS Visual Studio 2005 8.0 with the .NET framework 2.0 and on
the Visual C++ IDE I opened the wpcap.dsw and tried to build the
project as is said on the web.

I came up with 200 odd warnings and five errors like below,

Warnings Such as

Warning    5    warning C4996: '_snprintf' was declared deprecated
d:\winpcap\winpcap\wpcap\libpcap\fad-win32.c    86
Warning    9    warning C4996: '_snprintf' was declared deprecated
d:\winpcap\winpcap\wpcap\libpcap\fad-win32.c    250
Warning    11    warning C4146: unary minus operator applied to unsigned
type, result still unsigned    d:\winpcap\winpcap\wpcap\libpcap\gencode.c
104
Warning    12    warning C4146: unary minus operator applied to unsigned
type, result still unsigned    d:\winpcap\winpcap\wpcap\libpcap\gencode.c
104
Warning    14    warning C4996: '_vsnprintf' was declared deprecated
d:\winpcap\winpcap\wpcap\libpcap\gencode.c    120
Warning    23    warning C4996: '_snprintf' was declared deprecated
d:\winpcap\winpcap\wpcap\libpcap\inet.c    196
Warning    47    warning C4996: '_snprintf' was declared deprecated
d:\winpcap\winpcap\wpcap\libpcap\pcap-win32.c    480
Warning    50    warning C4996: '_snprintf' was declared deprecated
d:\winpcap\winpcap\wpcap\libpcap\pcap-win32.c    591
Warning    67    warning C4996: '_snprintf' was declared deprecated
d:\winpcap\winpcap\wpcap\libpcap\pcap.c    360
Warning    89    warning C4996: '_snprintf' was declared deprecated
d:\winpcap\winpcap\wpcap\libpcap\savefile.c    1130
Warning    124    warning C4996: '_snprintf' was declared deprecated
d:\winpcap\winpcap\wpcap\libpcap\rpcapd\daemon.c    548
Warning    150    warning C4996: '_snprintf' was declared deprecated
d:\winpcap\winpcap\wpcap\libpcap\pcap-new.c    312
Warning    201    warning C4996: '_snprintf' was declared deprecated
d:\winpcap\winpcap\wpcap\libpcap\pcap-remote.c    159


And Errors

Error    119    fatal error C1083: Cannot open include file: 'airpcap.h': No
such file or directory    d:\winpcap\winpcap\common\packet32.h    53
Error    120    fatal error C1083: Cannot open include file: 'airpcap.h': No
such file or directory    d:\winpcap\winpcap\common\packet32.h    53
Error    121    fatal error C1083: Cannot open include file: 'airpcap.h': No
such file or directory    d:\winpcap\winpcap\common\packet32.h    53
Error    122    error BK1506 : cannot open file '.\debug_remote_dag\pcap-
new.sbr': No such file or directory    BSCMAKE
Error    217    fatal error LNK1104: cannot open file 'wpcap.lib'
rpcapd


However when I rebuilt it the warnings were gone but the errors kept the
same...!

Can somebody help me out on this please, I think I am getting some
thing simple wrong.

Thanks Ahead

Your support is very much appreciated

Xavier
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20070910/5afe4398/attachment.htm


More information about the Winpcap-users mailing list