optlink and weak symbols

Ellery Newcomer ellery-newcomer at utulsa.edu
Wed Oct 17 20:12:35 PDT 2012


On 10/16/2012 11:16 PM, Jacob Carlborg wrote:
>
> You need to declare the variable as "extern" if it's defined in the C code:
>
> extern(C) extern __gshared PyTypeObject PyType_Type;
>
> http://dlang.org/interfaceToC.html#C%20Globals
>

nice tip, but adding extern doesn't change link behavior at all.


More information about the Digitalmars-d-learn mailing list