Wireshark mailing list archives

Re: Errors building 3.7 plugins.


From: Guy Harris <gharris () sonic net>
Date: Tue, 14 Dec 2021 12:44:34 -0800

On Dec 14, 2021, at 5:49 AM, João Valverde <j () v6e pt> wrote:

On 14/12/21 13:39, Gisle Vanem wrote:
João Valverde wrote:

you can (and probably should) include "config.h", just like other Wireshark bundled plugins do.

Why does this project not use '-FI./config.h'?

The header works fine, the consideration is that external plugins can only use the public API, and that header is not 
part of it.

And should never be part of it - for *any* project that provides headers and libraries for other code to use.

One problem is that the configuration settings with which the project was built are *not* necessarily the configuration 
settings with which the other code is being built; it might, for example, be compiled with a different compiler - which 
should be permitted as long as the two compilers build code using the same compiler-level ABI (calling sequence, etc.).
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe

Current thread: