Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] error in epan/tfs.h

From: sagar sg <sagu072@xxxxxxxxx>
Date: Mon, 18 Jul 2011 10:48:11 +0530
Yes, I have    

      #ifdef HAVE_CONFIG_H
       # include "config.h"
       #endif

But my code is in C++ and i am using gcc compiler. does this make any difference?

On Fri, Jul 15, 2011 at 8:38 PM, Jakub Zawadzki <darkjames-ws@xxxxxxxxxxxx> wrote:
Hi,

On Fri, Jul 15, 2011 at 08:34:48PM +0530, sagar sg wrote:
>    I am getting the following error during the compilation of the dissector
> on linux platform, does anybody know the cause for this error and solution ??

> /wireshark/wireshark-1.4.7/epan/ftypes/ftypes.h:263: error: expected
> constructor, destructor, or type conversion before âu
> /wireshark/wireshark-1.4.7/epan/proto.h:60: error: expected constructor,
> destructor, or type conversion before âintâ
> /wireshark/wireshark-1.4.7/epan/proto.h:1630: error: âWS_VAR_IMPORTâ does
> not name a type

Do you have:
       #ifdef HAVE_CONFIG_H
       # include "config.h"
       #endif

at the beginning of dissector c file?
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
            mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe