winpcap示例程序采用VC6编译时出错error C2054: expected '(' to follow '_W64'
来源:互联网 发布:python for none 编辑:程序博客网 时间:2024/05/19 15:41
e:\vehiclesecurity\wpdpack_4_1_2\include\pcap-stdinc.h(80) : error C2054: expected '(' to follow '_W64'e:\vehiclesecurity\wpdpack_4_1_2\include\pcap-stdinc.h(80) : error C2085: 'uintptr_t' : not in formal parameter liste:\vehiclesecurity\wpdpack_4_1_2\include\pcap-stdinc.h(89) : error C2628: '_W64' followed by 'int' is illegal (did you forget a ';'?)e:\vehiclesecurity\wpdpack_4_1_2\include\pcap-stdinc.h(89) : error C2085: 'intptr_t' : not in formal parameter liste:\vehiclesecurity\wpdpack_4_1_2\include\pcap\bpf.h(67) : error C2085: 'bpf_int32' : not in formal parameter liste:\vehiclesecurity\wpdpack_4_1_2\include\pcap\bpf.h(68) : error C2085: 'bpf_u_int32' : not in formal parameter liste:\vehiclesecurity\wpdpack_4_1_2\include\pcap\bpf.h(908) : error C2061: syntax error : identifier 'bpf_u_int32'e:\vehiclesecurity\wpdpack_4_1_2\include\pcap\bpf.h(909) : error C2059: syntax error : '}'e:\vehiclesecurity\wpdpack_4_1_2\include\pcap\pcap.h(130) : error C2061: syntax error : identifier 'bpf_u_int32'e:\vehiclesecurity\wpdpack_4_1_2\include\pcap\pcap.h(133) : error C2061: syntax error : identifier 'thiszone'e:\vehiclesecurity\wpdpack_4_1_2\include\pcap\pcap.h(133) : error C2059: syntax error : ';'e:\vehiclesecurity\wpdpack_4_1_2\include\pcap\pcap.h(134) : error C2061: syntax error : identifier 'sigfigs'e:\vehiclesecurity\wpdpack_4_1_2\include\pcap\pcap.h(134) : error C2059: syntax error : ';'e:\vehiclesecurity\wpdpack_4_1_2\include\pcap\pcap.h(135) : error C2061: syntax error : identifier 'snaplen'e:\vehiclesecurity\wpdpack_4_1_2\include\pcap\pcap.h(135) : error C2059: syntax error : ';'e:\vehiclesecurity\wpdpack_4_1_2\include\pcap\pcap.h(136) : error C2061: syntax error : identifier 'linktype'e:\vehiclesecurity\wpdpack_4_1_2\include\pcap\pcap.h(136) : error C2059: syntax error : ';'e:\vehiclesecurity\wpdpack_4_1_2\include\pcap\pcap.h(137) : error C2059: syntax error : '}'e:\vehiclesecurity\wpdpack_4_1_2\include\pcap\pcap.h(169) : error C2061: syntax error : identifier 'bpf_u_int32'e:\vehiclesecurity\wpdpack_4_1_2\include\pcap\pcap.h(170) : error C2061: syntax error : identifier 'len'e:\vehiclesecurity\wpdpack_4_1_2\include\pcap\pcap.h(170) : error C2059: syntax error : ';'e:\vehiclesecurity\wpdpack_4_1_2\include\pcap\pcap.h(171) : error C2059: syntax error : '}'e:\vehiclesecurity\wpdpack_4_1_2\include\pcap\pcap.h(228) : error C2061: syntax error : identifier 'bpf_u_int32'e:\vehiclesecurity\wpdpack_4_1_2\include\pcap\pcap.h(229) : error C2059: syntax error : '}'e:\vehiclesecurity\wpdpack_4_1_2\include\pcap\pcap.h(272) : error C2143: syntax error : missing ')' before '*'e:\vehiclesecurity\wpdpack_4_1_2\include\pcap\pcap.h(272) : error C2081: 'bpf_u_int32' : name in formal parameter list illegale:\vehiclesecurity\wpdpack_4_1_2\include\pcap\pcap.h(272) : error C2143: syntax error : missing '{' before '*'e:\vehiclesecurity\wpdpack_4_1_2\include\pcap\pcap.h(272) : error C2059: syntax error : ','e:\vehiclesecurity\wpdpack_4_1_2\include\pcap\pcap.h(272) : error C2059: syntax error : ')'e:\vehiclesecurity\wpdpack_4_1_2\include\pcap\pcap.h(287) : error C2122: 'char *' : prototype parameter in name list illegale:\vehiclesecurity\wpdpack_4_1_2\include\pcap\pcap.h(317) : error C2081: 'bpf_u_int32' : name in formal parameter list illegale:\vehiclesecurity\wpdpack_4_1_2\include\pcap\pcap.h(319) : error C2081: 'bpf_u_int32' : name in formal parameter list illegale:\vehiclesecurity\wpdpack_4_1_2\examples-pcap\pcap_filter\pcap_filter.c(57) : error C2065: 'bpf_u_int32' : undeclared identifiere:\vehiclesecurity\wpdpack_4_1_2\examples-pcap\pcap_filter\pcap_filter.c(57) : error C2146: syntax error : missing ';' before identifier 'NetMask'e:\vehiclesecurity\wpdpack_4_1_2\examples-pcap\pcap_filter\pcap_filter.c(57) : error C2065: 'NetMask' : undeclared identifiere:\vehiclesecurity\wpdpack_4_1_2\examples-pcap\pcap_filter\pcap_filter.c(58) : error C2143: syntax error : missing ';' before 'type'e:\vehiclesecurity\wpdpack_4_1_2\examples-pcap\pcap_filter\pcap_filter.c(59) : error C2143: syntax error : missing ';' before 'type'e:\vehiclesecurity\wpdpack_4_1_2\examples-pcap\pcap_filter\pcap_filter.c(60) : error C2143: syntax error : missing ';' before 'const'e:\vehiclesecurity\wpdpack_4_1_2\examples-pcap\pcap_filter\pcap_filter.c(154) : error C2065: 'res' : undeclared identifiere:\vehiclesecurity\wpdpack_4_1_2\examples-pcap\pcap_filter\pcap_filter.c(154) : error C2065: 'header' : undeclared identifiere:\vehiclesecurity\wpdpack_4_1_2\examples-pcap\pcap_filter\pcap_filter.c(154) : warning C4047: 'function' : 'struct pcap_pkthdr ** ' differs in levels of indirection from 'int *'e:\vehiclesecurity\wpdpack_4_1_2\examples-pcap\pcap_filter\pcap_filter.c(154) : warning C4024: 'pcap_next_ex' : different types for formal and actual parameter 2e:\vehiclesecurity\wpdpack_4_1_2\examples-pcap\pcap_filter\pcap_filter.c(154) : error C2065: 'pkt_data' : undeclared identifiere:\vehiclesecurity\wpdpack_4_1_2\examples-pcap\pcap_filter\pcap_filter.c(154) : warning C4047: 'function' : 'const unsigned char ** ' differs in levels of indirection from 'int *'e:\vehiclesecurity\wpdpack_4_1_2\examples-pcap\pcap_filter\pcap_filter.c(154) : warning C4024: 'pcap_next_ex' : different types for formal and actual parameter 3e:\vehiclesecurity\wpdpack_4_1_2\examples-pcap\pcap_filter\pcap_filter.c(162) : warning C4047: 'function' : 'const struct pcap_pkthdr *' differs in levels of indirection from 'int 'e:\vehiclesecurity\wpdpack_4_1_2\examples-pcap\pcap_filter\pcap_filter.c(162) : warning C4024: 'pcap_dump' : different types for formal and actual parameter 2e:\vehiclesecurity\wpdpack_4_1_2\examples-pcap\pcap_filter\pcap_filter.c(162) : warning C4047: 'function' : 'const unsigned char *' differs in levels of indirection from 'int 'e:\vehiclesecurity\wpdpack_4_1_2\examples-pcap\pcap_filter\pcap_filter.c(162) : warning C4024: 'pcap_dump' : different types for formal and actual parameter 3Error executing cl.exe.pf.exe - 41 error(s), 8 warning(s)
在pcap-stdinc.h文件最前面加上一句:
#define _WIN64
2 0
- winpcap示例程序采用VC6编译时出错error C2054: expected '(' to follow '_W64'
- Winpcap _W64 Error
- expected '(' to follow 'inline'
- winpcap网络编程在vc6下编译出错的原因
- wincap4.11在vc6下编译出现_W64错误【解决方法】
- wincap4.11在vc6下编译出现_W64错误
- vc6.0 编译完成端口程序出错
- 数组编译时出错error C2057: expected constant expression,以及解决办法
- 数组编译时出错error C2057: expected constant expression,以及解决办法
- 如何配置winpcap编译环境 VC6
- Cocos2d-x 3.0 TestCpp android编译出错 解决 error: expected ';' at end of member declaration
- Cocos2d-x 3.0 编译出错 解决 error: expected ';' at end of member declaration
- Cocos2d-x 3.0 编译出错 解决 error: expected '' at end of member declaration
- linux下编译ZBar出错 stdio2.h:140:1: error: expected identifier or ‘(’ before ‘{’ token
- VC6编写的程序移植到VS2010中编译时error C2440: “static_cast”问题的解决
- vc6编译wtl例子出错
- vc6编译wtl例子出错
- error LNK2005; VC6工程引入.lib时链接出错
- 求图的最小生成树的prime算法和Kruskal算法
- bash字符串截取
- hdu 4920 Matrix multiplication(矩阵坑题)
- 用Qt Quick快速设计UI
- JavaScript对Cookie的操作-设置Cookie、获得Cookie、删除Cookie
- winpcap示例程序采用VC6编译时出错error C2054: expected '(' to follow '_W64'
- 一步一步的学习BroadCastReceiver
- hdoj4883 TIANKENG’s restaurant
- python实现的json数据以HTTP GET,POST,PUT,DELETE方式页面请求
- ADO.NET 细说数据库连接池
- 淘宝数据魔方技术架构解析
- iOS 面试题(六)
- hdu 4539 郑厂长系列故事——排兵布阵 (状态压缩dp)
- 在Ubuntu Touch平台上开发的途径(Quick Quick, Scope, HTML 5)