----- Original Message -----
From: "Sam Tregar" <[EMAIL PROTECTED]>
To: "Neil Osborne" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, February 06, 2002 10:51 AM
Subject: Re: Building Perl modules with Inline -> HELP !!!


> On Tue, 5 Feb 2002, Neil Osborne wrote:
>
> > Could someone show me how to use Inline to create a Perl module from a C
> > libray ?. I've read the manual, and it's supposed to be really easy but
> > I can't find any "here's how you do it guide".
>
> Have you looked at Inline::C-Cookbook?  I think it has some examples that
> should point you on your way.
>
> -sam
>
 Also, for the mechanics of actually building the module, you could build
Math::Simple that resides in the 'modules' folder of the Inline tarball.

Simply cd to the modules/math/simple directory and build as per normal (perl
makefile.pl, make, make test and make install if you actually want to
install it) and there you have it - a module built using Inline.

By looking at the contents of  'simple.pm', 'makefile.pl', 'manifest',
'changes' and 'test.pl', you can easily see the requirements for building a
module using Inline.

Cheers,
Rob

Reply via email to