It may be forward declarition error.
Declear the function before using the function(at the top of the source code).

void packet_handler(u_char *param, const struct pcap_pkthdr *header, const 
u_char *pkt_data);

From: [email protected]
To: [email protected]
Date: Tue, 4 Mar 2014 17:43:05 +0000
Subject: [Winpcap-users] pcap_loop not working

 I am using visual studio 2012 and despite of including the header files I get 
the Error 1 error C2065: 'packet_handler' : undeclared identifier error and the 
source code is copy pasted from the winpcap’s official site.

_______________________________________________
Winpcap-users mailing list
[email protected]
https://www.winpcap.org/mailman/listinfo/winpcap-users                          
          
_______________________________________________
Winpcap-users mailing list
[email protected]
https://www.winpcap.org/mailman/listinfo/winpcap-users

Reply via email to