Compiling API exits

Once 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, you can find the sample API exit code in install-dir/samp and the compiled and linked shared library in install-dir/samp/bin. For Windows systems, you can find the sample API exit code in install-dir\Tools\c\Samples. install-dir is the directory in which WebSphere MQ was installed.

Notes to users:

  1. Guidance on programming 64 bit applications is listed in Appendix F. Coding standards on 64 bit platforms
  2. The examples list server applications. For client applications change mqm to mqic