optlink and weak symbols
Ellery Newcomer
ellery-newcomer at utulsa.edu
Thu Oct 18 17:30:40 PDT 2012
On 10/18/2012 11:36 AM, Jacob Carlborg wrote:
> On 2012-10-18 13:55, Ellery Newcomer wrote:
>
>> I am using python27_digitalmars.lib, which is generated from
>> libs\python27.lib with coffimplib, and it is linking my executables with
>> python.dll.
>
> Ok. Do you know how the corresponding C code would look like? Maybe you
> need to use the "export" attribute. It's the same as
> "__declspec(dllimport)", have a look:
>
> http://dlang.org/htomodule.html
>
> If that doesn't work then I'm out of suggestions, Windows is not my
> primary platform.
>
ha HA!
extern(C) extern export PyTypeObject PyType_Type;
seems to do the trick (I'm using a boiled down case just now)!
High five to the [non-me] non-windows dev!
More information about the Digitalmars-d-learn
mailing list