Wireshark mailing list archives

Re: include "tvbuff.h" failed


From: Marcel Haas <inf462 () Fh-Worms DE>
Date: Wed, 12 Oct 2011 09:04:42 +0200

On Tue, 11 Oct 2011 11:33:56 -0600, Stephen Fisher <steve () stephen-fisher com> wrote:
On Tue, Oct 11, 2011 at 02:02:48PM +0200, Marcel Haas wrote:

> i want to include the tvbuff.h to my code so i can make own tvbs
> with tvbuff_t* my code lies at wireshark/epan so as tvbuff.h.

> except.h:97: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
> before ‘void’

 Problem solved !

I'm not sure how you solved this, but for the mailing list archives:
these errors usually happen because necessary include files were not
included before this one.  Wireshark header files don't typically
include every header file they require, relying on (in this case) the
dissector writer to include them first.

___________________________________________________________________________
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

Sorry, ofcourse i will share my experience to the list ..
but u r right !
it was a stupied failur of mine.

i included the "tvbuff.h" befor

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

so its actually that what u saying !
 because necessary include files were not included before this one.

regards
Marcel
___________________________________________________________________________
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: