Compiling API exits
After we have written an exit, you compile and link it as follows.
The following examples show the commands used for the sample program described in The API exit sample program. For platforms other than Windows systems, we can find the sample API exit code in MQ_INSTALLATION_PATH/samp and the compiled and linked shared library in MQ_INSTALLATION_PATH/samp/bin. For Windows systems, we can find the sample API exit code in MQ_INSTALLATION_PATH \Tools\c\Samples. MQ_INSTALLATION_PATH represents the directory in which IBM MQ was installed.
Note to users:- Guidance on programming 64 bit applications is listed in Coding standards on 64-bit platforms
Operating system | Libraries |
---|---|
Windows | 32 bit & 64 bit: mqm.dll & mqm.pdb |
Linux & HP-UX | 32 bit & 64 bit: libmqm.so & libmqm_r.so |
AIX | 32 bit & 64 bit: libmqm.a & libmqm_r.a |
Solaris | 32 bit & 64 bit: libmqm.so |
IBM i | LIBMQM & LIBMQM_R |