Header-Only Library - pragma(root)

Stefan Koch uplink.coder at googlemail.com
Sun Jun 14 23:54:23 UTC 2020


On Sunday, 14 June 2020 at 16:42:36 UTC, Johannes Pfau wrote:
> Am Sun, 14 Jun 2020 01:36:50 -0700 schrieb Walter Bright:
>
>
>>    [...]
>
> If it really does only that, it'll lead to duplicate symbol 
> errors as soon as electron introces any symbols which do not 
> have weak linkage. This includes global variables, but that may 
> be expected not to work in header-only libraries.
>
> [...]

Proof of concept here: https://github.com/dlang/dmd/pull/11272


More information about the Digitalmars-d mailing list