You need the following libraries:
In a non-threaded environment, link to one of the following libraries:
Library file | Program/exit type |
---|---|
libmqm.a | Server for C |
libmqic.a | Client for C |
In a threaded environment, link to one of the following libraries:
Library file | Program/exit type |
---|---|
libmqm_r.a | Server for C |
libmqic_r.a | Client for C |
For example, to build a simple threaded WebSphere MQ application from a single compilation unit run the following commands.
For 32-bit applications:
$ xlc_r -o amqsputc_32_r amqsput0.c -I/usr/mqm/inc -L/usr/mqm/lib -lmqm_r
where amqsput0 is a sample program.
For 64-bit applications:
$ xlc_r -q64 -o amqsputc_64_r amqsput0.c -I/usr/mqm/inc -L/usr/mqm/lib64 -lmqm_r
where amqsput0 is a sample program.
If you want to use the programs on a machine that has only the WebSphere MQ client for AIX(R) installed, recompile the programs to link them with the client library (-lmqic) instead.
Notices |
Downloads |
Library |
Support |
Feedback
![]() ![]() |
lnkl |