From: SourceForge.net <no...@so...> - 2012-01-20 08:54:19
|
Bugs item #3476565, was opened at 2012-01-20 00:54 Message generated for change (Tracker Item Submitted) made by maxime-esa You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=3476565&group_id=1645 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: maxime-esa (maxime-esa) Assigned to: Nobody/Anonymous (nobody) Summary: Nested structures with enums fail to compile Initial Comment: In C, if a nested structure contains an enumerated type, the resulting SWIG-generated file contain duplicate symbols which prevents from compiling. For instance: typedef struct { struct { int a; enum { red, blue } b; } c; } SWIG creates a new typedef for the inner struct: typedef struct { int a; enum { red, blue } b; } c; Since there is also an #include of the original type in the generated code, this results in a duplicate definition of "red" and "blue". ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=3476565&group_id=1645 |