I've seen the "undefined reference" link errors when the DLL is not in sync with the link library. I've gotten around it by creating a new library from the DLL with 'dlltool'.

The other thing based simply on filenames is that .lib libraries are generally for use with the MSVC compiler package. Strawberry expects .a libraries.

I see your MQSeries specific libraries are here:

E:\mq71\Tools\lib\mqic.lib E:\mq71\Tools\lib\mqic32.lib

Where are the DLL's? Try this, replacing PATH_HERE with the proper path to the DLL's:

pexports E:\PATH_HERE\mqic.dll > mqic.def dlltool --as-flags=--64 -m i386:x86-64 -k --output-lib libmqic.a --inp +ut-def mqic.def pexports E:\PATH_HERE\mqic32.dll > mqic.def dlltool --as-flags=--64 -m i386:x86-64 -k --output-lib libmqic32.a --i +nput-def mqic.def

Make sure to rerun 'dmake' and check that the link step is referencing the new libmqic.a and libmqic32.a libraries instead of the .lib ones.

I've done this successfully with WinPcap when compiling Net::Pcap.


In reply to Re: Strawberry and MQSeries Problem by VinsWorldcom
in thread Strawberry and MQSeries Problem by mpersico

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.