Wireshark mailing list archives
Re: error in epan/tfs.h
From: sagar sg <sagu072 () gmail com>
Date: Mon, 18 Jul 2011 18:52:39 +0530
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 <AndreasSander1 () gmx net> 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 theWireshark #include with extern "C" like this?Perhaps Wireshark should surround the body of epan/tfs.h with that....Well, Wireshark is a C project. It uses C libraries as the GTK library. Therefore there is no need to add the 'extern "C"' guards to compile Wireshark. It would be helpful, if all Wireshark header files add theses guards. This would improve the compatibility with C++ compilers. But this may be error prone, since the authors must remember this when creating a new header file. A missing guard would not be detected as long as a C++ user will use it. Therefore I prefer to set the guards in the consuming C++ project. ______________________________**______________________________** _______________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: http://www.wireshark.org/**lists/wireshark-dev<http://www.wireshark.org/lists/wireshark-dev> Unsubscribe: https://wireshark.org/mailman/**options/wireshark-dev<https://wireshark.org/mailman/options/wireshark-dev> mailto:wireshark-dev-request@**wireshark.org<wireshark-dev-request () wireshark org> ?subject=**unsubscribe
___________________________________________________________________________ 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:
- error in epan/tfs.h sagar sg (Jul 15)
- Re: error in epan/tfs.h Stephen Fisher (Jul 15)
- Re: error in epan/tfs.h sagar sg (Jul 17)
- Re: error in epan/tfs.h Helge Kruse (Jul 18)
- Re: error in epan/tfs.h sagar sg (Jul 18)
- Re: error in epan/tfs.h Guy Harris (Jul 18)
- Re: error in epan/tfs.h Andreas (Jul 18)
- Re: error in epan/tfs.h sagar sg (Jul 18)
- Re: error in epan/tfs.h Andreas (Jul 18)
- Re: error in epan/tfs.h Jaap Keuter (Jul 18)
- Re: error in epan/tfs.h sagar sg (Jul 17)
- Re: error in epan/tfs.h Stephen Fisher (Jul 15)
- Re: error in epan/tfs.h sagar sg (Jul 18)
- Re: error in epan/tfs.h Andreas (Jul 18)
- Re: error in epan/tfs.h sagar sg (Jul 17)
- Re: error in epan/tfs.h Guy Harris (Jul 18)
- Re: error in epan/tfs.h sagar sg (Jul 18)
- Re: error in epan/tfs.h Guy Harris (Jul 18)