I would like to extend my perl module with some functions from C. I started with basic Hello World example and failed ;/
I compiled test.c to test.so and add to dir.
use base qw/Exporter DynaLoader/;
our $VERSION = '0.01';
our @EXPORT_OK = qw/ hello /;
bootstrap Test $VERSION;
in Test.pl I call C function with:
Unfortunatelly it doesn't work, returning error "Can't find 'boot_test' symbol in ./test.so at test.pl line 4"
Probably I use dynaloader in bad way, but have no idea how to make it works ;/
Yes, I know ther is an option with XS language but I would like to avoid it and just writte .c, code then compile it to .so and use from perl. I had heard that it must works.
Thanks for reasonable advices ;)