Preparing C programs

Precompiled C programs are supplied in the /usr/mqm/samp/bin directory. Use the ANSI compiler and run the following commands. For further information on programming 64 bit applications see Appendix F. Coding standards on 64 bit platforms.

For 32-bit applications:

  $ cc -o amqsputc_32 amqsput0.c -I/usr/mqm/inc -L/usr/mqm/lib -lmqm

where amqsput0 is a sample program.

For 64-bit applications:

  $ cc -q64 -o amqsputc_64 amqsput0.c -I/usr/mqm/inc -L/usr/mqm/lib64 -lmqm

where amqsput0 is a sample program.

If you want to use the programs on a machine that has only the WebSphere MQ client for AIX(R) installed, recompile the programs to link them with the client library (-lmqic) instead.