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.sl |
Server for C |
libmqic.sl |
Client for C |
In a threaded environment, link to one
of the following libraries:
Library file |
Program/exit type |
libmqm_r.sl |
Server for C |
libmqic_r.sl |
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.sl 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.sl and libmqz.sl libraries in a non-threaded application and
to the libmqmxa_r.sl and libmqz_r.sl libraries in a threaded application.
- You must link WebSphere MQ libraries before
any other product libraries.