You need to link your programs with the appropriate library provided by WebSphere MQ.
In a non-threaded environment, link to one of the following libraries:
Library file |
Program/exit type |
libmqm.so |
Server for C |
libmqic.so |
Client for C |
In a threaded environment, link to one of the following libraries:
Library file |
Program/exit type |
libmqm_r.so |
Server for C |
libmqic_r.so |
Client for C |
Notes:
- If you are writing an installable service (see the WebSphere MQ System Administration Guide for
further information), you need to link to the libmqmzf.so library.
- If you are producing an application for external coordination
by an XA-compliant transaction manager such as IBM(R) TXSeries(R) Encina(R), or BEA Tuxedo, you need to link to
the libmqmxa.so and libmqz.solibraries in a non-threaded application and to
the libmqmxa_r.so and libmqz_r.so libraries in a threaded application.
- You must link WebSphere MQ libraries before
any other product libraries.