Can't Extend

Michael Hudson mwh21 at cam.ac.uk
Sun May 14 19:50:45 EDT 2000


"Pete Shinners" <pshinners at mediaone.net> writes:

> i'm finding i cannot create my own C extensions for python.
> (this time checking with the FAQ) i'm stuck. using Visual C 6
> i am consistently getting this error.
> 
> ImportError: dynamic module does not define init function (initincr)
> 
> 
> as far as i can see, this is incorrect. there is a simple initincr
> function. i'm assuming there is some sort of name mangling going on
> during the compile/link

Seems likely.  Is initincr declared "extern C"?  It didn't look like
it from the code you posted.

Cheers,
M.

-- 
  On the other hand,  the following areas are subject to boycott
  in reaction to the rampant impurity of design or execution, as
  determined after a period of study, in no particular order: 
    ...                            http://www.naggum.no/profile.html



More information about the Python-list mailing list