Re: first time use of swig, python and c++ .. it's a mess ... please advice

2008-02-28 Thread Eric von Horst
ll > (hopefully) compile. > > I'd focus on doing it manually, then getting distutils to work properly. > > -Original Message- > From: Hyuga [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 27, 2008 10:01 AM > To: [EMAIL PROTECTED] > Subject: Re: first time use

RE: first time use of swig, python and c++ .. it's a mess ... please advice

2008-02-27 Thread Bronner, Gregory
Message- From: Hyuga [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 27, 2008 10:01 AM To: python-list@python.org Subject: Re: first time use of swig, python and c++ .. it's a mess ... please advice On Feb 26, 3:38 pm, Eric von Horst <[EMAIL PROTECTED]> wrote: > Hi, > &g

Re: first time use of swig, python and c++ .. it's a mess ... please advice

2008-02-27 Thread Hyuga
On Feb 26, 3:38 pm, Eric von Horst <[EMAIL PROTECTED]> wrote: > Hi, > > we have a third-party product that has a C++ api on HP-UX. > > I would like be able to use the API in Python (as I remember Python is > good at doing this). > > I have no experience with this so I Googled and tried to find some

first time use of swig, python and c++ .. it's a mess ... please advice

2008-02-26 Thread Eric von Horst
Hi, we have a third-party product that has a C++ api on HP-UX. I would like be able to use the API in Python (as I remember Python is good at doing this). I have no experience with this so I Googled and tried to find some info on what I had to do. So, I installed Python 2.4.4 and Swig 1.3.33 T

SWIG, Python and C structures

2006-07-28 Thread RocketIII
Hi, I have structures like the following: typedef struct _SX { int i; char str[10]; } SX; typedef struct _SXA { int num_elements; SX sa[10]; } SXA; void myfunc1( SX *sx_p ); void myfunc2( SXA *sxa_p ); The swig interface file simply includes the .h-file with the '%include' statemen

Swig, Python, and C++

2006-03-02 Thread Mich Peffe
Greetings All,I'm using SWIG for the first time and am running into some problems.  I've tried researching at swig.org and python.org, but unfortunately, most of the examples use programs I don't have, such as Solaris, Unix, and Irix.  I wish to make my C++ classes and functions accessible from Pyt