.so interdependencies
Paul Northug <[email protected]>
| Newsgroups | gmane.comp.python.ctypes |
|---|---|
| Message-ID | <[email protected]> |
Hello,
I would like to load a .so on Linux that I made myself (g++ -shared
*.o -o libmytest.so).
I can compile and run C programs against this .so, but when I try to
load it using ctypes:
test = cdll.LoadLibrary('libmytest.so')
I get an error:
libmytest.so: undefined symbol: slamch_
which is a function in a different library .so that is used by a
function in my library.
They are both in LD_LIBRARY_PATH. Is there a way to resolve this? I
have the freedom of creating the library, if that helps, but I don't
know much about shared libraries and how the dependencies between
libraries get resolved. Did I build my .so correctly given that it
works fine in other C programs that use it?
I have read one other post describing a similar problem but it didn't
seem to have gotten resolved.
Thanks,
Pål
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev