in reply to Re^2: some questions about example 4 of perlxstut
in thread some questions about example 4 of perlxstut

But as you said, example 4 is aim to access to functions in source, in this scenario, Inline C is not very suitable I think, although what h2xs shows in example 4 in perlxstut is not good either.

Hi,

Sure its perfectly suitable see

https://metacpan.org/pod/distribution/Inline-C/lib/Inline/C/Cookbook.pod#Exposing-Shared-Libraries

Might see also https://metacpan.org/pod/FFI::Platypus#libuuid

Interfacing Perl with C++, using XS, with external files, and using the STL as parameters and return values.

https://www.manning.com/books/extending-and-embedding-perl

...

  • Comment on Re^3: some questions about example 4 of perlxstut