By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,908 Members | 1,945 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,908 IT Pros & Developers. It's quick & easy.

Undefined Symbols while importing modules

P: n/a
Hi all,
I have been learning to write Python extension modules, and am quite
at a loss over a small glitch thats taking place. When I import my
module I get the following exception
>>import pygsmd
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.5/site-packages/pygsmd/", line 9,
in <module>
import _pygsmd, network, voicecall, sms, phonebook
ImportError: /usr/lib/python2.5/site-packages/pygsmd/
undefined symbol: pygsmd_handler

But the pygsmd_handler function is defined in the source file that
produces Also as you can see _pygsmd in imported first in
my Of course following the usual C rules, pygsmd_handler
is declared extern in a header that the other sources include. Is
there a way I could bring pygsmd_handler function in a more common
namespace?, so that other modules may use them. It seems that using
the build_clib feature creates only static libraries. Is there a way I
can create dynamic ones using distutils?

Thanks for the hints

Sudharshan S
Dec 4 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.