Prepare 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 Coding standards on 64 bit platforms.
For 32–bit applications:
$ cc -o amqsput_32 amqsput0.c -I/usr/mqm/inc -L/usr/mqm/lib -lmqmwhere amqsput0 is a sample program.For 64–bit applications:
$ cc -q64 -o amqsput_64 amqsput0.c -I/usr/mqm/inc -L/usr/mqm/lib64 -lmqmwhere amqsput0 is a sample program.If you are using the VisualAge C/C++ v6.0 compiler for C++ programs include the option -q namemangling=v5 to get all the WebSphere MQ symbols resolved when linking the libraries.
If you want to use the programs on a machine that has only the WebSphere MQ client for AIX installed, recompile the programs to link them with the client library (-lmqic) instead.
Parent topic:
Building your application on AIX
fg16150_