in reply to Re: Writing XS frontends to C++ libraries.
in thread Writing XS frontends to C++ libraries.
I'm still confused as to why there should be an ambiguity about this section of the XS file:
When the error produced by the code shows that we have what looks like a matching method:void MySettings::set(const string &key, const string &value)
Does XS not distinguish well between pointers and references?MyModule.c:64: no matching function for call to `Mysettings::set (cons +t string *, const string *)' /usr/local/include/mysettings.h:66: candidates are: void Mysettings::s +et(const string &, const string &)
MySet does have a typemap entry, of type O_OBJECT. I'll admit my understanding of typemaps is basic; this is just taken from the combining C++ and Perl link above.
|
---|
Replies are listed 'Best First'. | |
---|---|
XS and C++: keep it simple and use pointers
by blssu (Pilgrim) on Sep 11, 2002 at 20:52 UTC | |
by kilinrax (Deacon) on Sep 11, 2002 at 22:50 UTC |
In Section
Seekers of Perl Wisdom