Preparing C programs

This section explains the compiler and libraries you need to prepare your C programs.

C compiler version

You must use the DEC C compiler. To invoke the compiler, enter:

  $ CC/DECC

This is the default.

C compiler flags

The include files for MQSeries for Compaq OpenVMS Alpha are located in the MQS_INCLUDE directory. The following is an example of how to build the sample program AMQSPUT0:

  $ CC/INCLUDE_DIRECTORY=MQS_INCLUDE  AMQSPUT0
  $ LINK AMQSPUT0.OBJ,SYS$INPUT/OPTIONS
  SYS$SHARE: MQM/SHAREABLE
  Ctrl + Z

Linking libraries

You need to link your programs with the appropriate library provided by WebSphere MQ. The libraries are found in SYS$SHARE.

You must link to one or more of the following libraries:

Library file Program/exit type
mqm.exe Server for C
mqic.exe Client for C
mqmzf.exe Installable service



© IBM Corporation 1993, 2002. All Rights Reserved