in reply to Re: Extending perl with C dynamic library.
in thread Extending perl with C dynamic library.

Yes I know there is something missing but I don'w know what. What is this "symbol" and how to add this to my .c code ? I have to mention that with XS code compiled to c and then to .so all works. But I want to complie pure c instead of work with XS. So my question is how to add this symbol and how to make it works ?
  • Comment on Re^2: Extending perl with C dynamic library.

Replies are listed 'Best First'.
Re^3: Extending perl with C dynamic library.
by aitap (Curate) on Aug 18, 2013 at 11:21 UTC
    What is this "symbol" and how to add this to my .c code ?
    A symbol is just a name for something, a function in this case. It you can't use XS to generate a boot_<module> function for you, you'll have to write it yourself. Not an easy task, but perhaps achievable. Try looking at *.c files generated by xsubpp from *.xs files and writing similar code manually.