Need help with C extensions
simonb at webone.com.au
Mon Feb 23 23:57:15 CET 2004
On Sun, 09 Feb 2003 13:23:45 +0000, Carl Bevil wrote:
> Hello all. I am attempting to wrap a C library so that I can use it in
> Python. I've used SWIG on the header for this file, and am able to import and
> run functions from the library.
> The problem is that the library makes use of pointers as arguments and as
> return values. For example, a C function:
> void GetValues(float* val1, float* val2)
Yes. I use the "pointer.i" SWIG library to "dereference" pointers (aka
array lookups) from python. Unfortunately, i think it may be deprecated...
More information about the Python-list