I am rewriting the Algorithm::SkipList module so that the node class (Algorithm::SkipList::Node) is in C (which spaves a ton of memory, not to mention a little faster).

The problem is that the module won't build:

ExtUtils::Mksymlists::Mksymlists('lib\Algorithm\SkipList\Node') Generating script 'lib\Algorithm\SkipList\Node.lds' link @"lib\Algorithm\SkipList\Node.lds" -out:"blib\arch\auto\Algorithm +\SkipList\ Node\Node.dll" lib\Algorithm\SkipList\Node.obj : warning LNK4042: object specified mo +re than on ce; extras ignored lib\Algorithm\SkipList\Node.obj : warning LNK4042: object specified mo +re than on ce; extras ignored Node.def : error LNK2001: unresolved external symbol boot_Algorithm__S +kipList Node.def : error LNK2001: unresolved external symbol boot_Algorithm__S +kipList blib\arch\auto\Algorithm\SkipList\Node\Node.lib : fatal error LNK1120: + 2 unresol ved externals LINK : fatal error LNK1141: failure during build of exports file

I think this is because the Node.def file defines the bootstrap name for Algorithm::SkipList rather than Algorithm::SkipList::Node:

LIBRARY "Node" EXPORTS boot_Algorithm__SkipList _boot_Algorithm__SkipList = boot_Algorithm__SkipList

I suspect there's a problem with ExtUtils::Mksymlists, but I'm not sure.

I would rather not make Algorithm::SkipList::Node a separate module (which seems to be the only workaround that I'm aware of). Is there a better way to fix this, or have I run into a limitation or bug with ExtUtils::MakeMaker?


In reply to XS namespace problem by rrwo

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.