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

How to call a function from a shared library ?

P: n/a
Hello,

I'm getting overwhelmed by information if I google this question. But
it is not clear to me. I have a shared library (.so file), created by
some other company we work with. Now I have to call a certain function
from this shared library. The declaration looks like this;

int TransformPoints(void * vel_g, void* vel_i, void* vpoints, int nb)
;

Untill now, I was using the ctypes module to access this function. The
first two parameters are arrays[0..23] of type double and the third
parameter is an array[0..2] of type double. Using the ctypes module,
this works allright.

But now I have to port this application to other platforms, and I
cannot use the ctypes module anymore (due to libffi incompatibility).
Is there another way to do this?

Any help would be greatly appreciated.

Tom
Jul 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Tom Van Acker wrote:
Hello,

I'm getting overwhelmed by information if I google this question. But
it is not clear to me. I have a shared library (.so file), created by
some other company we work with. Now I have to call a certain function
from this shared library. The declaration looks like this;

int TransformPoints(void * vel_g, void* vel_i, void* vpoints, int nb)
;

Untill now, I was using the ctypes module to access this function. The
first two parameters are arrays[0..23] of type double and the third
parameter is an array[0..2] of type double. Using the ctypes module,
this works allright.

But now I have to port this application to other platforms, and I
cannot use the ctypes module anymore (due to libffi incompatibility).
Is there another way to do this?

Any help would be greatly appreciated.

Tom


Maybe Pyrex (http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/).
--
Nigel Rowe
A pox upon the spammers that make me write my address like..
rho (snail) swiftdsl (stop) com (stop) au
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.