Hello monks, I need some help with using c functions in s a PERL script. I have read through the perlxstut, and I think I get the concepts, and I was able to get the very first example to work, but not all the others. I have what I think should be a very simple extension. I have two files provided to me by my instructor: hilbert.c and hilbert.h, although they are very long they are reallt just a couple of functions to return a hilbert curve index given a point, and to return coordinates given a hilbert index. I wish to use these functions in a PERL script, but can't seem to get from perlxstut examples to actually applying it to my library. I didn't post the c files here, but will be glad to email them if someone is generous enough to help. Right now I am at the part where I have a Hilbert subdirectory, and I was able to run nmake but I can't use the dll file that was created, (Pretty sure there is nothing in it). If someone could provide or point to a more step by tutorial for xtending PERL with an existing h 7 c file I would ber grateful. If someone is so inclined to provide the tutorial themselves I can email the c header files. Thanks.

In reply to Need Help with perlxstut by ketema

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.