in reply to Strawberry and MQSeries Problem

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.

Replies are listed 'Best First'.
Re^2: Strawberry and MQSeries Problem
by mpersico (Monk) on Sep 17, 2013 at 18:20 UTC
    Turns out that the 64bit libs were in E:\mq71\Tools\lib64. Once I made that change in config, all was well. Thank you
      mpersico, Could you please share your CONFIG file here or share what you modified in the CONFIG to force the use of E:\mq71\Tools\lib64 ?