Can't Extend

Moshe Zadka moshez at math.huji.ac.il
Mon May 15 00:03:24 EDT 2000


On Sun, 14 May 2000, Pete Shinners wrote:

> 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

Surround the init function with extern "C" {}

--
Moshe Zadka <moshez at math.huji.ac.il>
http://www.oreilly.com/news/prescod_0300.html
http://www.linux.org.il -- we put the penguin in .com





More information about the Python-list mailing list