Compiling and binding applications

The MQSeries for Compaq NonStop Kernel MQI is implemented using the Compaq wide memory model (the int datatype is 4 bytes) and the Common Runtime Environment (CRE). Applications must be compatible with this environment in order to work correctly. Refer to the sample build files for the correct options for each compiler in order to ensure compatibility.

In particular, TAL and COBOL applications must follow the rules that are required for compatibility with the CRE, documented in the Compaq books relating to the CRE.

Note that, for successful use of the MQGMO_SET_SIGNAL function of MQGET, you must set the HIGHREQUESTERS attribute to ON in object code for COBOL and TAL applications.

For an installation, three versions of the MQI library are delivered with MQSeries for Compaq NonStop Kernel, contained in ZMQSLIB. You must ensure that you use the correct library, as shown in Table 18.

Table 18. Using the correct version of the MQI library for MQSeries for Compaq NonStop Kernel

Programming Language Nonnative Native/Static Native/Dynamic
TAL MQMLIB Not applicable Not applicable
COBOL MQMLIB MQMLIBN MQSRLLIB
C MQMLIB MQMLIBN MQSRLLIB
C++ Not applicable MQMLIBN MQSRLLIB

FASTPATH versus STANDARD bindings

MQSeries for Compaq NonStop Kernel supports both FASTPATH and STANDARD bindings. Table 18 describes the languages and environments that support each type of binding.

STANDARD bindings

Consider the following when using STANDARD bindings in an application:

FASTPATH bindings

Consider the following when using FASTPATH bindings in an application:



© IBM Corporation 1993, 2002. All Rights Reserved