bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Documentation module lib-symbol-visibility


From: Michael Goffioul
Subject: Re: Documentation module lib-symbol-visibility
Date: Fri, 20 Jul 2012 13:15:49 +0100

On Fri, Jul 20, 2012 at 12:56 PM, Дилян Палаузов <address@hidden> wrote:
Defining LIBFOO_DLL_EXPORTED in public header files has no added value from the user's perspective: mentioning a function in the public header files implies, that the function is visible.  As suggested, there is another way to achieve the same result, without touching the header files.

One advantage I see for decorating declarations is easier compatibility with compilers like MSVC that require exported variables to be decorated with dllimport. From a C++ point of view, I'd also find easier to decorate the class declaration once, instead of having to decorate all members in the source code.

Michael.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]