Linking libraries
The following lists the libraries that we need.
- 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
- If you are writing an installable service (see the WebSphere MQ System Administration Guide for further information), we 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 TXSeries Encina, or BEA Tuxedo, we need to link to the libmqmxa.so (or libmqmxa64.so if your transaction manager treats the 'long' type as 64-bit) and libmqz.so libraries in a non-threaded application and to the libmqmxa_r.so (or libmqmxa64_r.so) and libmqz_r.so libraries in a threaded application.
- You must link WebSphere MQ libraries before any other product libraries.
Parent topic:
Preparing C programs
fg16440_