B
B
beduin012015-02-04 21:24:50
Perl
beduin01, 2015-02-04 21:24:50

Is it possible to use C++ libraries in Perl?

Is it possible to use C++ libraries in Perl?
If yes, how is it done? (I am interested in the technical side, the languages ​​​​are very different)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dionys, 2015-02-12
@dionys

The following options are possible:

  • XS via C: perldoc.perl.org/perlxstut.html
  • Inline: https://metacpan.org/pod/distribution/Inline-CPP/l...
  • Inline via C: metacpan.org/pod/distribution/Inline-C/lib/Inline/C.pod
  • FFI via C: https://metacpan.org/pod/FFI

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question