in reply to Re: SWIG and conflicting definitions
in thread SWIG and conflicting definitions
Thanks for the reply. This is all black magic to me (plus I think some newlines got lost in the code in your first paragraph) so I'm not sure if I got it right. Here is what I tried around the section you suggested:
#include "EXTERN.h" #include "perl.h" #define CV __perl_CV #include "XSUB.h" #undef XSPROTO #define XSPROTO(name) void name(pTHX_ __perl_CV* cv) #undef CV
That's just copying what you wrote and guessing at the newlines, so I'm not sure if the syntax is correct. If I try to compile this, the STDERR is down to ~ 1500 lines with a lot of messages like this:
pwiz_swigbindings_wrap.cxx:748:39: error: ‘__perl_CV’ has not been dec +lared #define XSPROTO(name) void name(pTHX_ __perl_CV* cv)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: SWIG and conflicting definitions
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 |