本人使用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;
修改成上述样子。
问题解决了。如果还有问题欢迎私信交流!!!