winpcap 中出现c:\codes\include\pcap-stdinc.h(79) : error C2144: syn..错误时
2016-10-26 21:03
417 查看
本人使用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;
修改成上述样子。
问题解决了。如果还有问题欢迎私信交流!!!
相关文章推荐
- VS2005 winpcap配置(error:can not open include file pcap.h)
- phpMyAdmin安装后访问出现Warning: require_once(./libraries/common.inc.php)错误的解决办法
- JSP中include用法中出现的500错误
- c++ std::sort函数调用经常出现的invalidate operator<错误原因以及解决方法
- VC6.0编程用到#include <unistd.h>编译时出现的错误及解决方法
- 2007年3月15日 -- 网站论坛出现以下错误---/forum/inc/Dv_ClsMain.asp,行 1344
- python3.5连接MySQL出现Cannot open include file: 'config-win.h': No such file or directory 错误解决办法
- Eclipse编写C++出现Symbol 'std' could not be resolved错误提示的解决方案
- 加上#include<windows.h>后出现的奇葩错误
- JSP使用include指令出现“Duplicate local variable basePath”错误提示
- 基于winpcap抓包时, 出现问题的函数pcap_loop(adhandle,3,tcp_scan_packet_callback,NULL);
- Xcode6.1 发布 出现 The ipa is invalid. It does not include a Payload Directory 错误
- 学习用jsp:include标签,出现了一个错误
- cocos2d-x 3.x 引入【#include "cocos-ext.h"】头文件出现编译错误
- 编译QT项目出现错误:error C2144: syntax error : 'void' should be preceded by ';'
- VS2010调试程序出现错误:vc/atlmfc/include/atlcore.h(35): fatal error C1189: #error : This file requires _WIN32_WINNT to be #defined at le
- 编译mysql5.1.68 make时候出现./include/my_global.h:1088: 错误:对 C++ 内建类型 ‘bool’ 的重声明
- Qt4.8.Xlinux编译出现 :/usr/include/linux/futex.h:96: 错误:‘u32’ 在此作用域中尚未声明
- uboot编译错误error:no rule to make target include/stddef.h,needed by 'img2srec.o'
- drupal7中:sites/all/modules/hierarchical_select/includes/theme.inc出现array_merge错误