Re: Nested Structures Warning (Python, Swig 4.01.)

Gunther Schütze <[email protected]>
Newsgroups gmane.comp.programming.swig
Message-ID <[email protected]>
Hi,

Yes, Object_intRep_ivalue_set ... are still missing with %flatnested in the
input file.

Regards,
Gunther



-----Ursprüngliche Nachricht-----
Von: Vladimir Kalinin [mailto:[email protected]]
Gesendet: Mittwoch, 5. Februar 2020 16:52
An: [email protected]
Betreff: Re: [Swig-user] Nested Structures Warning (Python, Swig 4.01.)

Hi,

does that still happen if you put %flatnested at the top you your input
file?

(It should be on by default for Python, but who knows)

On 2/5/2020 5:53 PM, Gunther Schütze wrote:
> Hello,
>
> With Swig 4.0.1 and Python 3.8 I keep getting warnings 325 and 312
> (Nested union/struct not currently supported) that I did not get with Swig
> 1.3.40.
>
> An example is the following struct taken from the documentation:
>
> typedef struct Object {
>    int objtype;
>    union {
>      int ivalue;
>      double dvalue;
>    } intRep;
> } Object;
>
> This used to work with Swig 1.3.40, but when I put the code into a C++
> programm (Visual Studio 2015) with Swig 4.0.1 there is the 'warning 312:
> Nested union not currently supported (ignored)'. Object_objtype_set
> and Object_objtype_get are created but Object_intRep_ivalue_set,
> Object_intRep_ivalue_get, Object_intRep_dvalue_set and
> Object_intRep_dvalue_get are missing.
>
> Any help would be appreciated.
>
>
> Regards,
> Gunther
>
>
> _______________________________________________
> Swig-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/swig-user



_______________________________________________
Swig-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/swig-user


_______________________________________________
Swig-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/swig-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.