Hi all, I am trying to learn how to write perlxs by following perlxstut
I did all thing menthioned in the section EXAMPLE 4 of perlxstut, but when I try "make test", test failed with the error
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'blib/lib', 'blib/arch')" t/*.t t/Mytest2.t .. 1/2 # Failed test 'use Mytest2;' # at t/Mytest2.t line 9. # Tried to use 'Mytest2'. # Error: Can't find 'boot_Mytest2' symbol in /home/woosley/Mytest +2/blib/arch/auto/Mytest2/Mytest2.so # at (eval 4) line 2 # Compilation failed in require at (eval 4) line 2. # BEGIN failed--compilation aborted at (eval 4) line 2. # Looks like you failed 1 test of 2. t/Mytest2.t .. Dubious, test returned 1 (wstat 256, 0x100)
it looks like "use Mytest2" failed to execute, what is the possible problem? I totally do not understant the Error line.
Thx

In reply to perl xs begginer problem by woosley

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.