On 2/10/2004 11:53 AM, Simon Wistow wrote:
Well, I say odd but it's almost certainly my fault :(


I have a C++ library which I've started wrapping. In the typemap file I have


TYPEMAP
Reelmaker  * T_PTROBJ

Make test runs fine with a new and a destroy but, when i try doing any methods I get a failure like

"Can't locate object method "add_frame" via package "ReelmakerPtr" (perhaps you forgot to load "ReelmakerPtr"?)"

I'm just catching up on some of the mailing lists, and it looks like no ones answered your question, so...


Unfortunatelly, there is little up-to-date documentation on mixing C++ with XS (at least that I know about) although it is pretty well supported. The best that I know of is a very brief section in "Extending and Embedding Perl" <http://www.manning.com/jenness> that might be helpfull. Actually, you can probably learn as much from downloading the source <http://www.manning.com/jenness/ExtEmbPerlSrc_v0_90.tar.gz> as from reading what little is said on C++/XS (the book as a whole is pretty good though).

Download the source code and look in 'chap6/6.8.1/' for the relevant example.

Regards,
Randy.




Reply via email to