On Linux(R)

32 bit applications

Non-threaded

Compile the API exit source code by issuing the following command:

 gcc -m32 -shared -fPIC -o /var/mqm/exits/amqsaxe amqsaxe0.c -I/opt/mqm/inc -L/opt/mqm/lib \
      -Wl,-rpath=/opt/mqm/lib -Wl,-rpath=/usr/lib -lmqm
Threaded

Compile the API exit source code by issuing the following command:

gcc -m32 -shared -fPIC -o /var/mqm/exits/amqsaxe_r amqsaxe0.c -I/opt/mqm/inc -L/opt/mqm/lib \
     -Wl,-rpath=/opt/mqm/lib -Wl,-rpath=/usr/lib -lmqm_r

64 bit applications

Non-threaded

Compile the API exit source code by issuing the following command:

 gcc -m64 -shared -fPIC -o /var/mqm/exits64/amqsaxe amqsaxe0.c -I/opt/mqm/inc -L/opt/mqm/lib64 \
      -Wl,-rpath=/opt/mqm/lib64 -Wl,-rpath=/usr/lib64 -lmqm
Threaded

Compile the API exit source code by issuing the following command:

 gcc -m64 -shared -fPIC -o /var/mqm/exits64/amqsaxe_r amqsaxe0.c -I/opt/mqm/inc -L/opt/mqm/lib64 \
       -Wl,-rpath=/opt/mqm/lib64 -Wl,-rpath=/usr/lib64 -lmqm_r