This section describes how to build application programs written in C to run under Compaq Tru64 UNIX Version 5.0.
Attention |
---|
Only one set of libraries is supplied with MQSeries for Compaq Tru64 UNIX, V5.1, on Compaq Tru64 UNIX Version 5.0. You can build threaded or nonthreaded applications by linking with these libraries. |
The WebSphere MQ C include files are listed in Table 20.
They are installed in the directory /opt/mqm/inc/. The
include files are symbolically linked into /usr/include.
Table 20. C include files for MQSeries (Compaq Tru64 UNIX Version 5.0)
File name | Contents |
---|---|
<cmqc.h> | Call prototypes, data types, structures, return codes, and constants |
<cmqcfc.h> | Definitions for programmable commands |
<cmqxc.h> | Definitions for channel exits and data-conversion exits |
<cmqzc.h> | Definitions for installable services exits |
|
Work in your usual environment. Precompiled C programs are supplied in the /opt/mqm/samp/bin directory. Here is an example instruction for building the sample program amqsput0.c:
$ cc -std1 -o -pthread amqsput amqsput0.c -lmqm
If you want to use the programs on a machine on which only the MQSeries client for Compaq Tru64 UNIX is installed, recompile the programs to link them with the client library. Here is an example instruction for building a client:
$ cc -std1 -o -pthread amqsput amqsput0.c -lmqmic
You must link to one of the following libraries:
Library file | Program or exit type |
---|---|
libmqm.so | Server for C |
libmqic.so | Client for C |