winpcap 3.1
文件存在 但是抱错
char (&__wspiapi_countof_helper(__CountofType (&_Array)[_N]))[_N];
error C2265: '<Unknown>' : reference to a zero-sized array is illegal
error C2265: '<Unknown>' : reference to a zero-sized array is illegalstruct bpf_program {
u_int bf_len;
struct bpf_insn *bf_insns;
};
error C2011: 'bpf_program' : 'struct' type redefinition
error C2011: 'bpf_insn' : 'struct' type redefinition
文件存在 但是抱错
char (&__wspiapi_countof_helper(__CountofType (&_Array)[_N]))[_N];
error C2265: '<Unknown>' : reference to a zero-sized array is illegal
error C2265: '<Unknown>' : reference to a zero-sized array is illegalstruct bpf_program {
u_int bf_len;
struct bpf_insn *bf_insns;
};
error C2011: 'bpf_program' : 'struct' type redefinition
error C2011: 'bpf_insn' : 'struct' type redefinition
把其中的 Includes 目录添为工程新的包含文件目录
c:\program files\microsoft platform sdk\include\wspiapi.h(45) : error C2265: '<Unknown>' : reference to a zero-sized array is illegal
c:\downloads\wpcapsrc_3_1\winpcap\wpdpack\include\pcap-bpf.h(89) : error C2011: 'bpf_program' : 'struct' type redefinition
c:\downloads\wpcapsrc_3_1\winpcap\wpdpack\include\pcap-bpf.h(655) : error C2011: 'bpf_insn' : 'struct' type redefinition
还是老问题
在你的程序中加入#include <pcap.h>, #include <remote-ext.h>.然后在工程的setting中加入预定义宏:WPCAP,HAVE_REMOTE.导入wpcap.lib库请问怎么预定义宏:WPCAP,HAVE_REMOTE.导入wpcap.lib库 请写的详细点 我市菜鸟
谢谢
在 Project -- Settings -- Link 的 Object/library/modules 加入 wpcap.lib 、wsock32.lib我也是菜鸟,刚学的,在 http://www.winpcap.org/docs/man/html/index.html 看原文。我也问了winpcap的问题,都没人理,我顶你,不行再贴。
我也在学,交个朋友加24200964说明winpcap希望能共同学习