Compiling API exits on UNIX and Linux systems
Examples of how to Compile API exits on UNIX and Linux systems.
On all platforms, the entry point to the module is MQStart.
MQ_INSTALLATION_PATH represents the high-level directory in which IBM MQ is installed.
On AIX
Compile the API exit source code by issuing one of the following commands:
- 32 bit applications
- Non-threaded
cc -e MQStart -bE:amqsaxe.exp -bM:SRE -o /var/mqm/exits/amqsaxe \ amqsaxe0.c -I MQ_INSTALLATION_PATH/inc
- 64 bit applications
- Non-threaded
cc -q64 -e MQStart -bE:amqsaxe.exp -bM:SRE -o /var/mqm/exits64/amqsaxe \ amqsaxe0.c -I MQ_INSTALLATION_PATH/inc
On Linux
Compile the API exit source code by issuing one of the following commands:
- 31 bit applications
- Non-threaded
gcc -m31 -shared -fPIC -o /var/mqm/exits/amqsaxe amqsaxe0.c \ -I MQ_INSTALLATION_PATH/inc
- 32 bit applications
- Non-threaded
gcc -m32 -shared -fPIC -o /var/mqm/exits/amqsaxe amqsaxe0.c \ -I MQ_INSTALLATION_PATH/inc
- 64 bit applications
- Non-threaded
gcc -m64 -shared -fPIC -o /var/mqm/exits64/amqsaxe amqsaxe0.c \ -I MQ_INSTALLATION_PATH/inc
Parent topic: Compiling API exits