logo       

Re: dependant modules: msg#00144

programming.swig

Subject: Re: dependant modules

On Mon, Jan 27, 2003 at 07:15:40AM -0600, David Beazley wrote:
> Natas writes:
> > Hi,
> >
> > I'm attempting to create 2 python swig modules, with one module using
> > objects found in the other.
> >
> [ snip ]
> > I'm trying to make this work by %import'ing the .i for the otk module,
> > but it doesn't work. The code in the wrap.cc's seems identical, they
> > have the same type names etc, and in both modules they return the same
> > thing as far as I can tell. Is there any way I can make this work?
> >
>
> Are you running SWIG with the '-c' option and linking against the SWIG
> runtime libraries? If not, that's the problem. See
> Examples/python/import for an example.

Oh, wow, that was painless. Thanks!

I don't suppose there is any more painful ways to do this without
requiring my end users to have libswigpy on their system?

Natas
--
I am damn unsatisfied to be killed in this way.

http://www.icculus.org/openbox/

Attachment: pgpjGweOYKVTt.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise