Nested Structures Warning (Python, Swig 4.01.)

Gunther Schütze <[email protected]>
Newsgroups gmane.comp.programming.swig
Message-ID <[email protected]>
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
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.