You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to compile release "Update for MQ V9.1.3"
I have installed MQ libraries "9.1.0.3-IBM-MQC-Redist-LinuxX64.tar" under /opt/mqm/
When compiling i get the following error message: # github.com/ibm-messaging/mq-golang/mqmetric
../../src/github.com/ibm-messaging/mq-golang/mqmetric/channel.go:259:44: undefined: ibmmq.MQCFH
../../src/github.com/ibm-messaging/mq-golang/mqmetric/discover.go:65:26: undefined: ibmmq.MQObject
Apart from anything else, you appear to be trying to cross-compile for Windows on a Linux machine. That's not going to work as the MQ libraries are platform-specific.
And your paths do not look right - I would expect to see "src/github.com/ibm-messaging" somewhere in them. As you would get from the instructions in the README: git clone https://github.com/ibm-messaging/mq-metric-samples.git src/github.com/ibm-messaging/mq-metric-samples
Thanks for the feedback. The issue was indeed related to cross compiling. When compiling the code on windows the build was successful.
The issue can be closed.
Hi,
I'm trying to compile release "Update for MQ V9.1.3"
I have installed MQ libraries "9.1.0.3-IBM-MQC-Redist-LinuxX64.tar" under /opt/mqm/
When compiling i get the following error message:
# github.com/ibm-messaging/mq-golang/mqmetric
../../src/github.com/ibm-messaging/mq-golang/mqmetric/channel.go:259:44: undefined: ibmmq.MQCFH
../../src/github.com/ibm-messaging/mq-golang/mqmetric/discover.go:65:26: undefined: ibmmq.MQObject
I used the following commands to compile:
The text was updated successfully, but these errors were encountered: