Extending python - undefined symbol error on import

Daniel Dittmar daniel at dittmar.net
Fri Jul 22 17:24:51 EDT 2005


ch424 wrote:
> However, when I open up the python command line, and type "from gpib
> import *" or "import gpib" I get "ImportError: /usr/.../gpibmodule.so:
> undefined symbol: ibdev" -- but I know it's defined in the ni488.h
> file, especially as I can use this code from actual C programs without
> problems. The ni488.h file in in the right place to be used for C
> compilation.

I guess ibdev is *declared* in ni488.h and you'll have to add the lib 
where it is *defined*. You'll probably have to add a
libraries = ['gpip']
to setup.py.

Daniel



More information about the Python-list mailing list