Compiling API exits
After you 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: Guidance on programming 64 bit applications is listed in Coding standards on 64-bit platforms. For Multicast clients, API exits and data-conversion exits need to be able to run on the client-side because some messages might not go through the queue manager. The following libraries are part of the client packages as well as the server packages:Operate system | Libraries |
---|---|
AIX | 32 bit & 64 bit: libmqm.a & libmqm_r.a |
IBM i | LIBMQM & LIBMQM_R |
Linux | 32 bit & 64 bit: libmqm.so & libmqm_r.so |
Windows | 32 bit & 64 bit: mqm.dll & mqm.pdb |
- Compiling API exits on UNIX and Linux systems
Examples of how to Compile API exits on UNIX and Linux systems. - Compiling API exits on Windows systems
Compile and link the sample API exit program, amqsaxe0.c, on Windows - Compliling API exits on IBM i
Compiling API exits on IBM i.
Parent topic: Writing and compiling API exits on Multiplatforms