[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 14:33:13 PST 2016
https://issues.dlang.org/show_bug.cgi?id=12238
genede at hotmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |genede at hotmail.com
--- Comment #2 from genede at hotmail.com ---
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.
--
More information about the Digitalmars-d-bugs
mailing list