Boost logo

Boost :

From: John Maddock (jz.maddock_at_[hidden])
Date: 2024-04-29 11:30:52


On 29/04/2024 11:41, Peter Dimov via Boost wrote:
> Alexander Grund wrote:
>>>> One reason against autolink: It decides the use of static vs dynamic
>>>> libraries depending on a preprocessor define, good luck getting that
>>>> right in a portable way...
>>> The preprocessor define is necessary for things to work, so autolink
>>> is correct to decide based on it.
>> I am aware of that, I consider that define basically part of the autolink feature.
> No, it's not part of the autolink feature. It needs to be set properly whether
> or not autolink is used.

Right, the whole __declspec(dllimport/dllexport) annotation needs to be
set consistently across TU's, so there is always *some* macro or other
which must be set consistently or "bad things may happen".  All we're
really doing is giving the macro a consistent name.

John.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk