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.