I'm not happy with some of my 7+ years old CPAN modules; they were perfect in the days before x64, Vista, and x86 Macs - but in the modern-days of complication and target platforms without compilers - I'm thinking I (we?) need to come up with a definitive "Tutorial" including template on how to actually put an xs module into CPAN in a way that has a fighting chance of actually working in real life.

Help!!!

printf("Hello from XS\n");

So here is the question:

What instructions must I follow, and what templates must I start with, in order to end up with a successful CPAN module (that includes native "C" inside it's xs), which when installed and "used" on any out-of-the-box modern PC will actually:
(A) Install, and
(B) work ?

"Modern" includes at least Windows7 (x64, ActiveState latest version, no Visual-Studio installed), XP (32), Mac (old and new - do these ship with compilers installed? - if not - then without them!), and Linux (recent, with compilers of course)


In reply to Hard: seeking CPAN template for multiplatform xs module by CDRAKE

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.