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 has operator overloads and so on. 

The ExtUtils::XSpp is not clear on how I should handle this. I tried
doing 

https://github.com/PerlGameDev/Box2D-perl/blob/master/xsp/Box2D.xsp

but when I compile and run I get:


Building Box2D
Generating main XS file...
Error: line 7 (Current token type: 'OPCURLY') (Current value: '{') Buffer: " 
"
Expecting: ('OPPAR')
Error reading from pipe '/home/kthakore/.perl5/perls/perl-5.12.2/bin/perl5.12.2 
-MExtUtils::XSpp::Cmd -e xspp --  
/home/kthakore/Documents/Development/Box2D-perl/Box2D/xsp/Box2D.xsp':  in 
main.xs, line 22


Any help will be appreciated. 

Regards,
-- 
Kartik Thakore <thakore.kar...@gmail.com>

Reply via email to