ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] wireshark compilation errors in Cygwin.

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Wed, 21 Jul 2010 00:41:03 -0700
On Jul 20, 2010, at 11:30 PM, upendra.allu@xxxxxxxxx wrote:

> packet-tsrp-template.c(134) : error C2275: 'proto_item' : illegal use of this type as an expression
>         ../..\epan\proto.h(269) : see declaration of 'proto_item'

Please read the "Portability" section of the "doc/README.developer" document in the Wireshark source, and then go through your code to make sure you're not doing *anything* that it says not to do.  Not all compilers are GCC, and not all things that GCC accepts are accepted by all C compilers, including the Microsoft C compiler that's used for Wireshark on Windows.