jfisher at are.berkeley.edu
Fri Jun 25 20:52:29 CEST 1999
I'm having a bit of trouble loading a C extension into Python 1.5.2.
I'm getting the error:
Traceback (innermost last):
File "<stdin>", line 1, in ?
File "bpinter.py", line 9, in ?
PyBPMPD = imp.load_dynamic('PyBPMPD', 'PyBPMPD.so')
ImportError: ./PyBPMPD.so: undefined symbol: setdef
setdef, not written by me, but called from inside PyBPMPD.c, is
extern int setdef(bpmparam *);
The module itself compiles without complaint with:
gcc -I/usr/include/python1.5/ -shared -o PyBPMPD.so PyBPMPD.c
I'd appreciate any ideas on the problem. I'm rather stumped.
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
More information about the Python-list