WinPcap sample program with VC6 compile error error c2054:expected ' (' to follow ' _w64 '

Source: Internet
Author: User

E:\vehiclesecurity\wpdpack_4_1_2\include\pcap-stdinc.h: Error c2054:expected ' (' to follow ' _w64 ' E:\ Vehiclesecurity\wpdpack_4_1_2\include\pcap-stdinc.h: Error C2085: ' uintptr_t ': not in formal parameter liste:\  Vehiclesecurity\wpdpack_4_1_2\include\pcap-stdinc.h (): Error C2628: ' _w64 ' followed by ' int ' are illegal (did you forget A '; '?) E:\vehiclesecurity\wpdpack_4_1_2\include\pcap-stdinc.h (): Error C2085: ' intptr_t ': not in formal parameter liste:\ Vehiclesecurity\wpdpack_4_1_2\include\pcap\bpf.h: Error C2085: ' Bpf_int32 ': not in formal parameter liste:\ Vehiclesecurity\wpdpack_4_1_2\include\pcap\bpf.h (): 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 (): 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: Error c2061:syntax error:identifier ' len ' e:\ Vehiclesecurity\wpdpack_4_1_2\include\pcap\pcap.h: 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:synt Ax 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 PA Rameter 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 ($): Error C2065: ' Bpf_u_int32 ': Undeclared IDENTIFIERE:\VEHICLESECURITY\WPDPACK_4_1_2\EXAMPLES-PCAP\PCAP_ FILTER\PCAP_FILTER.C: Error C2146:syntax error:missing '; ' before identifier ' NetMask ' E:\vehiclesecurity\wpdpack_ 4_1_2\EXAMPLES-PCAP\PCAP_FILTER\PCAP_FILTER.C ($): Error C2065: ' NetMask ': Undeclared identifiere:\vehiclesecurity\ WPDPACK_4_1_2\EXAMPLES-PCAP\PCAP_FILTER\PCAP_FILTER.C (+): Error c2143:syntax error:missing '; ' Before ' type ' e:\ Vehiclesecurity\wpdpack_4_1_2\examples-pcap\pcap_filter\pcap_fiLTER.C: Error C2143:syntax error:missing '; ' Before ' type ' E:\VEHICLESECURITY\WPDPACK_4_1_2\EXAMPLES-PCAP\PCAP_ FILTER\PCAP_FILTER.C: 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): WarningC4047: ' 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 par Ameter 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\pc AP_FILTER\PCAP_FILTER.C (162): Warning C4024: ' pcap_dump ': different types for formal and actual parameter 2e:\vehiclesec URITY\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 er Ror (s), 8 warning (s)

Add a sentence to the front of the pcap-stdinc.h file:

#define _win64


WinPcap sample program with VC6 compile error error c2054:expected ' (' to follow ' _w64 '

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.