in reply to SWIG and conflicting definitions
Lets see if I got this correctly:
It is ugly, but the preprocessor can help to move the conflicting identifiers around. To do so I would manually modify the file pwiz_swigbindings_wrap.cxx and insert this line before
#define CV __perl_CV
and these ones after
#undef XSPROTO
#define XSPROTO(name) void name(pTHX_ __perl_CV* cv)
#undef CV
line 745.
#define CV __perl_CV /* beginning of include XSUB.h */ struct cv { int i; }; typedef struct cv CV; #define XSPROTO(name) CV name /* end of include XSUB.h */ #undef XSPROTO #define XSPROTO(name) __perl_CV name #undef CV struct CV { char c; }; XSPROTO(x); int main() { struct CV y; x.i = 0; y.c = '!'; return 0; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: SWIG and conflicting definitions
by jdv (Sexton) on Jan 07, 2016 at 19:17 UTC | |
by hexcoder (Curate) on Jan 08, 2016 at 11:16 UTC | |
by jdv (Sexton) on Jan 08, 2016 at 15:01 UTC | |
by Anonymous Monk on Jan 08, 2016 at 16:53 UTC | |
by hexcoder (Curate) on Jan 08, 2016 at 22:54 UTC | |
by jdv (Sexton) on Jan 09, 2016 at 06:01 UTC | |
by hexcoder (Curate) on Jan 08, 2016 at 22:36 UTC |