logo       

dependant modules: msg#00143

programming.swig

Subject: dependant modules

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.

Cheers,

Dave

_______________________________________________
Swig maillist - Swig@xxxxxxxxxxxxxxx
http://mailman.cs.uchicago.edu/mailman/listinfo/swig



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

News | FAQ | advertise