Inheriting from Math::BigInt - What am I doing wrong?

2011-04-26 Thread Paul Bennett
Trying here, after filing an rt.cpan.org bug, to find one of the maintainers of Math::BigInt, especially Math::BigInt::(GMP|Pari). I'm trying to inherit my module (Net::IPAddress::Util) from Math::BigInt, while using (i.e. passing along) the try, lib and only import arguments. Here's the

Re: Inheriting from Math::BigInt - What am I doing wrong?

2011-04-26 Thread Lars Dɪᴇᴄᴋᴏᴡ 迪拉斯
Is there an existing If you don't have a module installed, go get it from CPAN automatically module out there? CPAN::AutoINC Module::AutoINC Acme::Magic::Pony lib::xi signature.asc Description: This is a digitally signed message part.

Handling C++ structs with XSpp

2011-04-26 Thread Kartik Thakore
Hi, I am trying to bind Box2D to Perl using XSpp. This is my code so far: https://github.com/PerlGameDev/Box2D-perl I am using Module::Build::WithXSpp and ExtUtils::XSpp. The first thing I need to bind are a bunch of C++ style structs (not pure C struct). http://paste.scsys.co.uk/99657 It

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

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 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 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: