Re: [Wireshark-dev] include "tvbuff.h" failed

2011-10-14 Thread Helge Kruse

 Original-Nachricht 
> Datum: Wed, 12 Oct 2011 09:04:42 +0200
> Von: Marcel Haas 
> An: Developer support list for Wireshark 
> Betreff: Re: [Wireshark-dev] include "tvbuff.h" failed

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

You should remove the "#ifdef HAVE_CONFIG_H", config.h is always used.

Regards,
Helge

-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
___
Sent via:Wireshark-dev mailing list 
Archives:http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe


Re: [Wireshark-dev] include "tvbuff.h" failed

2011-10-12 Thread Marcel Haas
On Tue, 11 Oct 2011 11:33:56 -0600, Stephen Fisher 
 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 
Archives:http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
 
mailto:wireshark-dev-requ...@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 
Archives:http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

Re: [Wireshark-dev] include "tvbuff.h" failed

2011-10-11 Thread Stephen Fisher
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 
Archives:http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

Re: [Wireshark-dev] include "tvbuff.h" failed

2011-10-11 Thread Marcel Haas
On Tue, 11 Oct 2011 10:32:33 +0200, Marcel Haas  
wrote:

Hey,

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.

My code :
#include "tvbuff.h"
...

when i am running make i get that failure

In file included from exceptions.h:29,
 from tvbuff.h:41,
 from list_mh.c:4:
except.h:97: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘void’
except.h:98: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘void’
except.h:99: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘void’
except.h:100: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘void’

What doing iam wrong ??

thx and regards
Marcel

___
Sent via:Wireshark-dev mailing list 
Archives:http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev

mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe



Problem solved !
___
Sent via:Wireshark-dev mailing list 
Archives:http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

[Wireshark-dev] include "tvbuff.h" failed

2011-10-11 Thread Marcel Haas

Hey,

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.

My code :
#include "tvbuff.h"
...

when i am running make i get that failure

In file included from exceptions.h:29,
 from tvbuff.h:41,
 from list_mh.c:4:
except.h:97: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ 
before ‘void’
except.h:98: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ 
before ‘void’
except.h:99: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ 
before ‘void’
except.h:100: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ 
before ‘void’


What doing iam wrong ??

thx and regards
Marcel
___
Sent via:Wireshark-dev mailing list 
Archives:http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe