compiling extensions on linux
Joe Connellan
joec at mill.co.uk
Mon Sep 2 12:09:50 EDT 2002
I'm trying to port an extension of mine from windows to linux and am not
sure how to include the myExtension.def file in the compile - I'm using
g++
eg if I use
g++ -shared -o myextension.so
it compiles fine but I get the following error when importing it into
python
>>> import myextension
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: dynamic module does not define init function
(initmyextension)
>>>
Thanks
Joe
More information about the Python-list
mailing list