Compilers for WebSphere MQ platforms

The compilers can be used on both the WebSphere MQ client and the WebSphere MQ server, unless indicated otherwise.

AIX

If you are using the IBM VisualAge C++ Professional, Version 5.0 compiler, use the following switches and libraries:

Switches
xlC[_r] -qchars=signed -I/usr/mqm/inc

Libraries
-limqb23ia[_r] -limq{c|s}23ia[_r]

Notes:

  1. {c|s} denotes that you must enter either 'c' for a client application or 's' for a server application.

  2. To build a threaded application you need to link with the libraries ending in _r.

Compaq Tru64 UNIX

If you are using the Compaq C++ for Tru64 UNIX Version 6.2 compiler on Compaq Tru64 UNIX Version 4.0, use the following switches and libraries:

Switches
cxx -std1[ -pthread]

Libraries
-limq{c|s}23ff[_r] -limqb23ff[_r]

Notes:

  1. {c|s} denotes that you must enter either 'c' for a client application or 's' for a server application.

  2. To build threaded applications, you need to use the -pthread switch and link with libraries ending in _r.

If you are using the Compaq C++ for Tru64 UNIX Version 6.2 compiler on Compaq Tru64 UNIX Version 5.0, use the following switches and libraries:

Switches
cxx -pthread

Libraries
-limq{c|s}23ff -limqb23ff
Note:
{c|s} denotes that you must enter either 'c' for a client application or 's' for a server application.

HP-UX V10.20 and V11

If you are using the HP ANSI C++ compiler on HP-UX V10.20 or HP-UX V11, use the following switches and libraries:

Switches
aCC +z -D_HPUX_SOURCE

Libraries
-limqi23ah[_r|_d] {-lmqm[_r|_d] | -lmqic[_r|_d]}

Notes:

  1. If you compile with aCC, you must also link with aCC.

  2. Library -lmqm must be linked in with a server application whereas the library -lmqic must be linked in with a client application.

  3. To build non-threaded applications, you do not need to link with libraries ending in _r or _d; the non-underscore version of the libraries suffices. To build draft 10 pthreads applications on HP-UX V11 and draft 4 pthreads applications on HP-UX V10.20, link with the libraries ending in _r. To build draft 4 pthreads applications on HP-UX V11, link with the libraries ending in _d.

iSeries

If you are using the IBM ILE for C++ for iSeries compiler, use the following switches and libraries:

Switches
DFTCHAR*(SIGNED)

Libraries
BNDSRVPGM(QMQM/IMQB23I4[_R] QMQM/IMQS23I4[_R])
Note:
To build a threaded application you need to link with the libraries ending in _R.

Linux

If you are using the GNU g++ compiler, version 2.95.2 or version 3.0.3, use the following switches and libraries. No other version 2 compilers are supported. It is possible to use the version 3.0.3 libraries with other version 3 compilers (check the compatibility statement installed with the compiler you want to use). By default the version 3.0.3 libraries are linked to /opt/mqm/lib and /usr/lib.

Switches
g++ -fsigned-char -I/usr/mqm/inc

Libraries (v2.95.2)
-L/opt/mqm/lib/2.95.2 -W,-rpath/opt/mqm/lib/2.95.2 -limqb23gl[_r]
   -limq{c|s}23gl[_r]
 

Libraries (v3.0.3)
-L/opt/mqm/lib/3.0.3 -W,-rpath/opt/mqm/lib/3.0.3 -limqb23gl[_r]
   -limq{c|s}23gl[_r]

Notes:

  1. {c|s} denotes that you must enter either 'c' for a client application or 's' for a server application.

  2. To build a threaded application you need to link with the libraries ending in _r.

OS/2 Warp

If you are using the IBM VisualAge for C++ Version 3.0 for OS/2 compiler, use the following switches and libraries:

Switches
icc /Gd /Gm /Gs /J-

Libraries
imqb23i2 imq{c|s}23i2
Note:
{c|s} denotes that you must enter either 'c' for a client application or 's' for a server application.

Solaris (SPARC and Intel platforms)

If you are using the Sun WorkShop Compiler C++ Version 5.0, use the following switches and libraries:

Switches
CC -mt

Libraries
-limqb23as -limq{c|s}23as {-lmqic|-lmqm} \
-lmqmcs -lmqmzse -lsocket -lnsl -ldl

Notes:

  1. {c|s} denotes that you must enter either 'c' for a client application or 's' for a server application.

  2. Library -lmqm must be linked in with a server application whereas the library -lmqic must be linked in with a client application.

Windows 3.1 (16-bit client only)

If you are using the Microsoft Visual C++ Version 1.5 for Windows 3.1 compiler, use the following switches and libraries:

Switches
cl -ALw -Mq

Libraries
imqb23vw imqc23vw mqic
Note:
There are no C++ component entries for trace in this environment.

Windows 95, Windows 98, Windows NT, and Windows 2000

If you are using the IBM VisualAge for C++ for Windows Version 3.5 compiler, use the following switches and libraries:

Switches
icc /Gd /Gm /Gs /J-

Libraries
imqb23in imq{c|s}23in

Notes:

  1. {c|s} denotes that you must enter either 'c' for a client application or 's' for a server application.

  2. There are no C++ component entries for trace in this environment.

If you are using the Microsoft Visual C++ Version 6.0 compiler (also Version 4.x and 5.0 on Windows 95 and Windows 98), use the following switches and libraries:

Switches
cl -MD

Libraries
imqb23vn imq{c|s}23vn
Note:
{c|s} denotes that you must enter either 'c' for a client application or 's' for a server application.

z/OS

If you are using the IBM z/OS C/C++ Version 2 Release 4 or later compiler, use the following switches and libraries:

Switches
/cxx

Libraries
The side-decks are:
imqs23dm imqb23dm, or imqs23dr imqb23dr, or imqs23dc imqb23dc

and the corresponding DLL load modules are:

imqs23im imqb23im, or imqs23ir imqb23ir, or imqs23ic imqb23ic


© IBM Corporation 2001. All Rights Reserved