Re: Handling C++ structs with XSpp

2011-04-26 Thread Shmuel Fomberg
Hi Kartik. I think that you still need to #include your header file where b2Vec2 is defined in the beginning of the xsp file. Shmuel. On 2011/04/27 3:35, Kartik Thakore wrote: I seem to have gotten a bit further by mimic the early ZeroMQ perl module tsee made. This is my class xsp now:

Re: Handling C++ structs with XSpp

2011-04-26 Thread David Nicol
Have you considered using Inline::CPP and writing your accessors as needed? Its another layer of indirection, but there may be fewer surprises.

Re: Handling C++ structs with XSpp

2011-04-26 Thread Kartik Thakore
I seem to have gotten a bit further by mimic the early ZeroMQ perl module tsee made. This is my class xsp now: https://github.com/PerlGameDev/Box2D-perl/blob/master/xsp/b2Vec2.xsp But now I am running into: cc -I/home/kthakore/.perl5/perls/perl-5.12.2/lib/5.12.2/x86_64-linux-thread-multi/CORE

Re: Handling C++ structs with XSpp

2011-04-26 Thread Shmuel Fomberg
Hi, um, Kartik? I worked with XS++ before, and I can tell you that the author (steffen) is very helpful. a few pointers: I don't think that you want to use the %file directive. it redirect the output of XS++, while you probably wanted to just include the file. if it is true, then just #i