Chris Faulkner wrote:
Hello

I have been looking at Inline C and Inline CPP. I have compiled the simple
examples shown on the cpan site.

What I need to do is to call a method in an external shared library. I have
the .so and the necessary header files. How to do do the #include's in my
perl script ? ARe there any examples ?


'perldoc Inline::C-Cookbook' - the section headed 'Exposing Shared Libraries'. You probably also need an import lib ('.a'). If you don't have that lib file then you would have to create it from the shared lib.


(For the includes, they get put in at the start of the cpp code as per normal.)

I am actually confused about two main areas


Confuses me, too. Just choose whichever format suits you. I don't know of anything that can be achieved under one construct, but not the other. I use the first format.
Tmtowtdi :-)


Cheers,
Rob

--
Any emails containing attachments will be deleted from my ISP's mail server before I even get to see them. If you wish to email me an attachment, please provide advance warning so that I can make the necessary arrangements.




Reply via email to