Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^6: SWIG and conflicting definitions

by jdv (Sexton)
on Jan 09, 2016 at 06:01 UTC ( [id://1152382]=note: print w/replies, xml ) Need Help??


in reply to Re^5: SWIG and conflicting definitions
in thread SWIG and conflicting definitions

This worked!

#include "EXTERN.h" #include "perl.h" #include "XSUB.h" /* These lines are needed to avoid collisions */ #undef XSPROTO #define XSPROTO(name) void name(pTHX_ struct cv* cv)

Despite the additional caveats given by you and hexcoder, adding just those last two lines as suggested allowed things to compile without error, and I tested the resulting module/library with a basic call and got the expected response. There's still a lot of work to do cleaning up the interface and getting it to use existing system libraries instead of pulling everything into the module shared object file, but I'm willing to spend the time now that I know the basics work.

Thanks to both of you for the help. I'd give you both more upvotes if I could.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1152382]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-19 04:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found