How to access an Array and a struct within a struct wrapped by Swig ?
jparker104 at gmail.com
jparker104 at gmail.com
Tue Aug 19 10:37:20 EDT 2008
On Aug 17, 11:30 pm, emmanuel.rivo... at gmail.com wrote:
> Anish Chapagain, I already know how to use structure, as my example
> shown it.
> I had trouble only with the nested structures, and it was coz of
> missing typedef (ie: Swig need C struct declaration, not C++).
>
> And I still cannot find how to get my arrays... :-S
I was having the same problem with arrays and found a workaround here:
http://www.swig.org/papers/PyTutorial97/PyTutorial97.pdf
slide 39, "Helper Functions" I got it to work, hope this helps
More information about the Python-list
mailing list