We don't bite newbies here... much | |
PerlMonks |
Writing XS frontends to C++ libraries.by kilinrax (Deacon) |
on Sep 11, 2002 at 18:30 UTC ( [id://197028]=perlquestion: print w/replies, xml ) | Need Help?? |
kilinrax has asked for the wisdom of the Perl Monks concerning the following question: Interfacing C++ and Perl seems to be a somewhat underdocumented subject; so far I have only managed to find the following:
If anyone can suggest a better forum for this, or source of documentation specific to what I'm trying to do, when please tell me. If not, and you have any experience of what I'm trying to do, read on ... I've been comsistently encountering two errors - one of which occurs whenever I try and access an overloaded method, e.g:
The second occurring when accessing methods which return an object of a differing class to the owner of the method, e.g Produces the error:
I've tried googling for '"cannot convert `RETVAL' from type `MySet"', which turns up absolutely no results; and '"no matching function for call to" XS', which turns up ones of little relevance. Anyone know how to deal with these problems? n.b. Before anyone suggests it, I have tried generating the XS code with SWIG, but had even less success with it.
Back to
Seekers of Perl Wisdom
|
|