compiling extension errors

Mark Hammond mhammond at skippinet.com.au
Sat May 13 15:50:47 EDT 2000


"Pete Shinners" <pshinners at mediaone.net> wrote in message
news:4ZhT4.5034$WS3.42757 at typhoon.we.rr.com...
> i'm getting in touch with the author of the module, but i'm trying
> to compile with extension under win32, with visc6.

You can either add a command line option to compile the code as C++, or
change the header:

>
> static PyTypeObject CD_Type =
> {
>     PyObject_HEAD_INIT(&PyType_Type)

To:
>     PyObject_HEAD_INIT(NULL)

And in your module init function add:

CD_Type.ob_type = &PyType_Type;

Or something like that!

Mark.






More information about the Python-list mailing list