Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^4: Inline::C and Packaged Distributions

by demerphq (Chancellor)
on Oct 04, 2005 at 13:08 UTC ( [id://497238]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Inline::C and Packaged Distributions
in thread Inline::C and Packaged Distributions

Yeah, I comment out the inline stuff and do it all by hand. And no i havent automated the process as Ive not needed to use it that often. Basically the idea is to use Inline as a bridge to help you grok XS, and once thats done you just use XS because its easier to distribute.

IOW: Inline::C is easier to develop, but XS is easier to deploy.

---
$world=~s/war/peace/g

Replies are listed 'Best First'.
Re^5: Inline::C and Packaged Distributions
by tlm (Prior) on Oct 04, 2005 at 15:54 UTC

    My problem is that, for reasons I don't yet understand, my Inline::C does not generate *.xs files.

    the lowliest monk

      Ahm, shoot. My apologies. You need to enable the option that tells Inline not to clean up after itself. I think you want something like

      use Inline Config => ENABLE => FORCE_BUILD, DISABLE => CLEAN_AFTER_BUILD;

      or the equivelent

      use Inline Config => FORCE_BUILD => 1, CLEAN_AFTER_BUILD => 0;

      IIRC, this should come before you say

      use Inline::C;

      BTW, I assure you that Inline::C does indeed produce XS. :-) In fact thats exactly what Inline::C does for you: autogenerate XS bindings for the C routines you provide.

      ---
      $world=~s/war/peace/g

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://497238]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (6)
As of 2024-03-28 11:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found