Re: .so interdependencies
Michele Petrazzo - Unipex <[email protected]>
| Newsgroups | gmane.comp.python.ctypes |
|---|---|
| Message-ID | <[email protected]> |
Paul Northug wrote:
> 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.
>
I'm not a c devel, but, have you tried:
g++ -shared *.o -o libmytest.so -Lthe_other_lib ?
and, you can try to compile directory the .c program:
g++ -shared file_using_the_other_lib.c -o libmytest.so -Lthe_other_lib
Michele
------------------------------------------------------------------------------
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