Hi. I am running on Solaris6 and have my own C library called, say, mylib.so. I am trying to use XS to provide the glue. I have no trouble doing this if I have the library's source (for instance, as shown in XS tutorial example 4 at www.perl.com/pub/doc/manual/html/pod/perlxstut.html"). But what I cannot figure out is how one specifies to load one's own library if it's already built. Does anyone know? the -L option in "h2xs" seems to only be for built-in libraries and "MYEXTLIB" in Makefile.PL seems to refer to a library one is going to build, not one that it already built. Thanks, an XS novice

In reply to How do you tell XS to load one's own pre-built .so? by juda

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.