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.