winpcap 中出现c:\codes\include\pcap-stdinc.h(79) : error C2144: syn..错误时

本人使用vc++6.0编译时出现
c:\codes\include\pcap-stdinc.h(79) : error C2144: syntax error : missing ';' before type 'unsigned int'
c:\codes\include\pcap-stdinc.h(79) : fatal error C1004: unexpected end of file found
的错误。
在国内网上论坛找了好多都说的不够详细,有的说配置错误,有的说vc++6.0版本低。


所以查找了外国大牛的笔记找到了修改的方法,并尝试可行,错误消失。

首先双击错误 你会进入 pcap-stdinc.h 文件夹。

会自动跳转到文件中下面的行
typedef _W64 unsigned int   uintptr_t;
typedef _W64 int   intptr_t;

找到上面的两行,进行修改

typedef unsigned int   uintptr_t; //typedef _W64 unsigned int   uintptr_t;
typedef int   intptr_t; //typedef _W64 int   intptr_t;

修改成上述样子。

问题解决了。如果还有问题欢迎私信交流!!!

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值