If it's C code I would create the XS file using InlineX::C2XS (Inline::C is a pre-requisite). If it's C++ code I would create the XS file using InlineX::CPP2XS (Inline::CPP is a pre-requisite).
Cheers, Rob
Comment on Re: Any help on Perl h2xs would appreciate