[C++-sig] pygccxml and multidimensional arrays

Roman Yakovenko roman.yakovenko at gmail.com
Thu Apr 16 07:04:24 CEST 2009


On Tue, Apr 14, 2009 at 11:30 PM, Davidson, Josh <josh.davidson at lmco.com> wrote:
> Machine: x86_64 running RH EL 5.0
>
> Pygccxml version 1.0.0
>
> Gcc-xml version 0.9.0
>
>
>
> If I create a struct similar to:
>
>
>
> typedef struct {
>
>     uint16_t a[4][2][3];
>
> } blah;
>
>
>
> And use pygccxml to parse it, the type attribute for the field “a” is set
> to: uint16_t[3][2][4].  Does anyone know why the dimensions are reversed?

I guess this is Py++/pygccxml bug.
Can you create small test case of what you are trying to do.

Thanks

-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/


More information about the Cplusplus-sig mailing list