Work in your normal environment. Precompiled C programs are supplied in the /opt/mqm/samp/bin directory. For further information on programming 64 bit applications see Appendix F. Coding standards on 64 bit platforms.
The following is an example of how to build the sample program amqsput0 in a non-threaded 32-bit environment:
c89 -Wl,+b,: +e -D_HPUX_SOURCE -o amqsputc_32 amqsput0.c -I/opt/mqm/inc -L/opt/mqm/lib -L/usr/lib -lmqm
The following is an example of how to build the sample program amqsput0 in a threaded 32-bit environment:
c89 -Wl,+b,: +e -D_HPUX_SOURCE -o amqsputc_32_r amqsput0.c -I/opt/mqm/inc -L/opt/mqm/lib -L/usr/lib -lmqm_r -lpthread
The following is an example of how to build the sample program amqsput0 in a non-threaded 64-bit environment:
c89 +DD64 -Wl,+noenvvar -D_HPUX_SOURCE -o amqsputc_64 amqsput0.c -I/opt/mqm/inc -L/opt/mqm/lib64 -L/usr/lib/pa20_64 -lmqm
The following is an example of how to build the sample program amqsput0 in a threaded 64-bit environment:
c89 +DD64 -Wl,+noenvvar -D_HPUX_SOURCE -o amqsputc_64_r amqsput0.c -I/opt/mqm/inc -L/opt/mqm/lib64 -L/usr/lib/pa20_64 -lmqm_r -lpthread
If you want to use the programs on a machine that has only the WebSphere MQ client for HP-UX installed, recompile the programs to link them with the client library (-lmqic) instead.
Notices |
Downloads |
Library |
Support |
Feedback
![]() ![]() |
csqzal10125 |