Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
First, you need a working C / C++ compiler (preferably the same compiler that was used to build your perl binary).

Then, if your header files are really simple, you might try h2xs to automatically convert header routines to XS code. h2xs is part of your standard perl install. XS code is a sort of C dialect with extra macros and syntactic sugar in which you can specify the calling conventions for subroutines than can then be called from perl.

Usually, though, you will need to write the XS code by hand. Take a look at the following manpages: perlapi perlxs, perlintern, perlguts, perlcall and perlembed.

Also useful are the "Advanced Perl Programming" and "Extending and Embedding Perl" books, and PerlGuts Illustrated.

Oh, and before I forget - you might want to take a look at Inline::C and its relatives. They can make it a lot easier to start experimenting with C / XS / Perl programming

In reply to Re: Accessing compiled libraries by Joost
in thread Accessing compiled libraries by templer

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-06-22 15:40 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.