I want to write Perl bindings for a C++ library, so that the library can be used from Perl. How would I get started doing this? I’ve written pure-Perl modules for CPAN before.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is SWIG and there XS. I used XS for Net::Sharktools which was the first time I wrote any XS code. I point to it because it was a particularly trivial case, and might be a good way to get an idea of what is involved.
perldoc perlxs includes a section on C++ specific aspects as well.