compiling extensions on linux

Joe Connellan joec at
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

eg if I use

g++ -shared -o

it compiles fine but I get the following error when importing it into

>>> import myextension
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: dynamic module does not define init function



More information about the Python-list mailing list