Skip to main content

Relinking COBOL runtime with MQseries 8 returns undefined symbol error but it works with version 7.5

  • January 11, 2016
  • 0 replies
  • 0 views

Problem

Undefined symbol           first referenced in file

xcsConvertString             /opt/mqm/lib64/libmqicb.so

CSCtrl                              /opt/mqm/lib64/libmqicb.so

xcsGetMemFn                 /opt/mqm/lib64/libmqicb.so

xcsQueryCCSIDTypeFn  /opt/mqm/lib64/libmqicb.so

Resolution

With the MQ Client installed on the machine there is the necessity to link with libmqic not libmqicb.

If it is the MQ Server installed instead of the client then link with libmqm.

Change the command line to use one of the libraries above then it will work.