Compiling data-conversion exits on UNIX and Linux systems
Examples of how to compile a data conversion exit 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.
AIX
Compile the exit source code by issuing one of the following commands:
- 32 bit applications
- Non-threaded
cc -e MQStart -bE:MYFORMAT.exp -bM:SRE -o /var/mqm/exits/MYFORMAT \ MYFORMAT.c -I MQ_INSTALLATION_PATH/inc
- 64 bit applications
- Non-threaded
cc -q64 -e MQStart -bE:MYFORMAT.exp -bM:SRE -o /var/mqm/exits64/MYFORMAT \ MYFORMAT.c -I MQ_INSTALLATION_PATH/inc
Linux
Compile the exit source code by issuing one of the following commands:
- 31 bit applications
- Non-threaded
gcc -m31 -shared -fPIC -o /var/mqm/exits/MYFORMAT MYFORMAT.c \ -I MQ_INSTALLATION_PATH/inc
- 32 bit applications
- Non-threaded
gcc -m32 -shared -fPIC -o /var/mqm/exits/MYFORMAT MYFORMAT.c -I MQ_INSTALLATION_PATH/inc
- 64 bit applications
- Non-threaded
gcc -m64 -shared -fPIC -o /var/mqm/exits64/MYFORMAT MYFORMAT.c -I MQ_INSTALLATION_PATH/inc
Parent topic: Writing a data-conversion exit for IBM MQ on UNIX and Linux systems