[Issue 12238] Using pthread_mutex_t.init results in an undefined reference linker error.
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Jan 7 15:02:12 PST 2016
https://issues.dlang.org/show_bug.cgi?id=12238
--- Comment #3 from genede at hotmail.com ---
(In reply to genede from comment #2)
> Workaround:
>
> I ran into this today with the Windows COM VARIANT struct, which is a union
> that contains a struct that contains a union and a struct.
>
> I ended up working around this with a separate initialization method:
>
> export static tagVARIANT createVARIANT { return tagVARIANT(); }
>
> This work around isn't elegant, but my guess is it can be broadly used for
> this issue, potentially blocking some people who are stumped.
or rather unblocking....
--
More information about the Digitalmars-d-bugs
mailing list