Re: urgent issue: loading lib under Linux [SEC=UNCLASSIFIED]

Mads Kiilerich <[email protected]>
Newsgroups gmane.comp.python.ctypes
Message-ID <[email protected]>
On 03/18/2010 02:42 PM, Axel Seibert wrote:
> ** > Can you use a fully qualified path name?
>
> Python 2.6.4 (r264:75706, Mar 17 2010, 20:42:48)
> [GCC 3.4.6 20060404 (Red Hat 3.4.6-10)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>  >>> from ctypes import *
>  >>> cdll.LoadLibrary("/home/casa/api700p002linux/lib/libar.so")
> Traceback (most recent call last):

Can you load other .so's? For example libm.so or /usr/lib/libm.so?

What do
ldd /home/casa/api700p002linux/lib/libar.so
say?

IIRC you said it was open source - why don't you post a link to the code?

/Mads

------------------------------------------------------------------------------
Download Intel&#174; 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.