DL_EXPORT (Extending on Windows question)

Mark Hammond mhammond at skippinet.com.au
Tue Feb 1 07:23:17 EST 2000


"Thomas Heller" <thomas.heller at ion-tof.com> wrote in message
news:038b01bf6c1d$5aec9a10$4500a8c0 at thomasnotebook...
> How do I compile my C-extensions so that
> the usual
>   DL_EXPORT (void) initmodule (void)
> is expanded to
>   __declspec (dllexport) void initmodule (void)
> ?
>
> Cannot figure out the right defines...

You shouldnt use these for your extension - they are considered
private to Python.  You should invent your own define....

Mark.






More information about the Python-list mailing list