in reply to C to perl binding using XSLoader?
You will need to show the relevant parts of your XS file too. Also see perlxstut for a start with XS.