[Prophesy] C from Python Example
Rasmus Andersen
rasmus at jaquet.dk
Tue Jun 11 17:31:06 EST 2002
On Tue, Jun 11, 2002 at 07:48:20AM +0200, Rasmus Andersen wrote:
> On Mon, Jun 10, 2002 at 11:33:18PM +0200, Rasmus Andersen wrote:
> > I have before used SWIG (www.swig.org) sucessfully as C/Python integrator.
> > The v1.3 (newest, I think) I had on my system choked on some of your
> > C constructs, using the attached patch helped.
> >
> > Also, I had to use an interface file to get SWIG to grok other stuff.
> > Also attached.
>
> Sigh.
>
[snip attachments]
While I am at it, I might as well give the incantations:
% swig -python transform.i
% cc -I/usr/include/python2.2 -shared -o foo.so transform.c transform_wrap.c
The tutorial at the www.swig.org site is fairly short and concise.
Rasmus
More information about the Prophesy
mailing list