![[AIX]](ngaix.gif)
Compiling data-conversion exits on AIX and Linux systems
Examples of how to compile a data conversion exit on AIX® and Linux® systems.
Required libraries
See External libraries for a list of 32-bit and 64-bit libraries that you can use.
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]](ngaix.gif)
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]](nglinux.gif)
Linux
Compile the exit source code by issuing one of the following commands:
- 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