Wireshark mailing list archives
Re: Tap Compilation Error
From: Guy Harris <guy () alum mit edu>
Date: Thu, 15 Jul 2010 10:51:43 -0700
On Jul 15, 2010, at 10:48 AM, eymanm wrote:
I'm trying to create a tap by mimicking approach described in README.tapping. Compiler spits the following errors on the "const myprot_call_info_value *ri = arg2;" line: myprot_stat.c(106) : error C2143: syntax error : missing ';' before '*' myprot_stat.c(106) : error C2065: 'ri' : undeclared identifier myprot_stat.c(106) : error C2100: illegal indirection myprot_stat.c(106) : warning C4047: '=' : 'int' differs in levels of indirection from 'const void *'
You *have* make "myprot_call_info_value" a typedef for some data type, right?
If not, then the statement
const myprot_call_info_value *ri = arg2;
is not valid C.
___________________________________________________________________________
Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives: http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- Tap Compilation Error eymanm (Jul 15)
- Re: Tap Compilation Error Guy Harris (Jul 15)
