in reply to Re: .XS segfault
in thread .XS segfault

That was it, fabulous!

I actually tried Inline first (Ingy did a really good job of selling it at YAPC::2001), but couldn't figure out how to make it compile the .so at "make" time rather than run time. Now I've got this far, I can give it a try again.

derby++

(person who has a votebot downvoting me)--

Replies are listed 'Best First'.
Re: Re: Re: .XS segfault
by derby (Abbot) on Mar 08, 2002 at 16:46 UTC
    mugwumpjism,

    That's outlined in Inline (check out the section titled "Writing Modules with Inline"). To sum those instructions up:

    1. run h2xs -PAXn <ModuleName> 2. Edit ModuleName.pm and add your Inline Code 3. Edit Makefile.PL 3a. Change use ExtUtils::MakeMaker to use Inline::MakeMaker 3b. Change WriteMakefile to WriteInlineMakefile 4. perl Makefile.PL 5. make dist

    -derby