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

2011-07-18 Thread Jaap Keuter
On 18 jul. 2011, at 15:15, Andreas wrote: > Am 18.07.2011 10:12, schrieb Guy Harris: >> >> On Jul 18, 2011, at 1:02 AM, Helge Kruse wrote: >> >>> I use always C++ to write my custom dissectors. Did you surround the >>> Wireshark #include with extern "C" like this? >> >> Perhaps Wireshark shou

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

2011-07-18 Thread Andreas
Am 18.07.2011 15:22, schrieb sagar sg: Okay, you mean to say we have to add the extern c { tfs.h } to the wireshark code ? No, it wouldn't help to solve your problem. You can add this guard in your C++ project. I just mentioned that Wireshark could be prepared to be used in a C++ project.

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

2011-07-18 Thread sagar sg
Okay, you mean to say we have to add the extern c { tfs.h } to the wireshark code ? On Mon, Jul 18, 2011 at 6:45 PM, Andreas wrote: > Am 18.07.2011 10:12, schrieb Guy Harris: > > >> On Jul 18, 2011, at 1:02 AM, Helge Kruse wrote: >> >> I use always C++ to write my custom dissectors. Did you sur

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

2011-07-18 Thread Andreas
Am 18.07.2011 10:12, schrieb Guy Harris: On Jul 18, 2011, at 1:02 AM, Helge Kruse wrote: I use always C++ to write my custom dissectors. Did you surround the Wireshark #include with extern "C" like this? Perhaps Wireshark should surround the body of epan/tfs.h with that Well, Wireshar

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

2011-07-18 Thread Andreas
Am 18.07.2011 11:51, schrieb sagar sg: How do u write makefile for that ? do u use gcc or g++ ? if u can paste a sample makefile then that may help. Honestly, I don't write any makefile, if I can avoid it. I use the New-Project wizard of Visual Studio to create a DLL project, add some files

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

2011-07-18 Thread sagar sg
How do u write makefile for that ? do u use gcc or g++ ? if u can paste a sample makefile then that may help. On Mon, Jul 18, 2011 at 1:32 PM, Helge Kruse wrote: > Am 18.07.2011 07:16, schrieb sagar sg: > > Yes. My dissector code is in C++ which i am compiling independently and >> using the req

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

2011-07-18 Thread Guy Harris
On Jul 18, 2011, at 1:17 AM, sagar sg wrote: > let me know, is there something need to be changed in code to compile it in > linux. because in windows i was able to compile the same code success fully. ? I have absolutely no idea, as I haven't seen the code. Perhaps there's something that som

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

2011-07-18 Thread sagar sg
let me know, is there something need to be changed in code to compile it in linux. because in windows i was able to compile the same code success fully. ? On Mon, Jul 18, 2011 at 1:44 PM, Guy Harris wrote: > > On Jul 17, 2011, at 10:18 PM, sagar sg wrote: > > > Yes, I have > > > > #ifdef H

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

2011-07-18 Thread Guy Harris
On Jul 17, 2011, at 10:18 PM, sagar sg wrote: > 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? I wouldn't expect it to. Could we see the code, please? You m

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

2011-07-18 Thread Guy Harris
On Jul 18, 2011, at 1:02 AM, Helge Kruse wrote: > I use always C++ to write my custom dissectors. Did you surround the > Wireshark #include with extern "C" like this? Perhaps Wireshark should surround the body of epan/tfs.h with that

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

2011-07-18 Thread sagar sg
Yes i did that.. On Mon, Jul 18, 2011 at 1:32 PM, Helge Kruse wrote: > Am 18.07.2011 07:16, schrieb sagar sg: > > Yes. My dissector code is in C++ which i am compiling independently and >> using the required libraries. >> > > I use always C++ to write my custom dissectors. Did you surround the >

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

2011-07-18 Thread Helge Kruse
Am 18.07.2011 07:16, schrieb sagar sg: Yes. My dissector code is in C++ which i am compiling independently and using the required libraries. I use always C++ to write my custom dissectors. Did you surround the Wireshark #include with extern "C" like this? extern "C" { #include #includ

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

2011-07-17 Thread sagar sg
Yes. My dissector code is in C++ which i am compiling independently and using the required libraries . On Fri, Jul 15, 2011 at 8:42 PM, Stephen Fisher wrote: > On Fri, Jul 15, 2011 at 08:34:48PM +0530, sagar sg wrote: > > >I am getting the following error during the compilation of the > > d

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

2011-07-17 Thread sagar sg
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 wrote: > Hi, > > On Fri, Jul 15, 2011 at 08:34:48PM +0530, sagar sg wrote: > >I

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

2011-07-15 Thread Jakub Zawadzki
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 > cons

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

2011-07-15 Thread Stephen Fisher
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 ?? please reply. > /wireshark/wireshark-1.4.7/epan/ftypes/ftypes.h:263: error: e

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

2011-07-15 Thread sagar sg
Hi, 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 ?? please reply. /wireshark/wireshark-1.4.7/epan/ftypes/ftypes.h:263: error: expected constructor, destructor, or type conversion before âu /w