The compilers can be used on both the WebSphere MQ client and the WebSphere MQ server, unless indicated otherwise.
If you are using the IBM VisualAge C++ Professional, Version 5.0 compiler, use the following switches and libraries:
xlC[_r] -qchars=signed -I/usr/mqm/inc
-limqb23ia[_r] -limq{c|s}23ia[_r]
Notes:
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:
cxx -std1[ -pthread]
-limq{c|s}23ff[_r] -limqb23ff[_r]
Notes:
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:
cxx -pthread
-limq{c|s}23ff -limqb23ff
If you are using the HP ANSI C++ compiler on HP-UX V10.20 or HP-UX V11, use the following switches and libraries:
aCC +z -D_HPUX_SOURCE
-limqi23ah[_r|_d] {-lmqm[_r|_d] | -lmqic[_r|_d]}
Notes:
If you are using the IBM ILE for C++ for iSeries compiler, use the following switches and libraries:
DFTCHAR*(SIGNED)
BNDSRVPGM(QMQM/IMQB23I4[_R] QMQM/IMQS23I4[_R])
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.
g++ -fsigned-char -I/usr/mqm/inc
-L/opt/mqm/lib/2.95.2 -W,-rpath/opt/mqm/lib/2.95.2 -limqb23gl[_r] -limq{c|s}23gl[_r]
-L/opt/mqm/lib/3.0.3 -W,-rpath/opt/mqm/lib/3.0.3 -limqb23gl[_r] -limq{c|s}23gl[_r]
Notes:
If you are using the IBM VisualAge for C++ Version 3.0 for OS/2 compiler, use the following switches and libraries:
icc /Gd /Gm /Gs /J-
imqb23i2 imq{c|s}23i2
If you are using the Sun WorkShop Compiler C++ Version 5.0, use the following switches and libraries:
CC -mt
-limqb23as -limq{c|s}23as {-lmqic|-lmqm} \ -lmqmcs -lmqmzse -lsocket -lnsl -ldl
Notes:
If you are using the Microsoft Visual C++ Version 1.5 for Windows 3.1 compiler, use the following switches and libraries:
cl -ALw -Mq
imqb23vw imqc23vw mqic
If you are using the IBM VisualAge for C++ for Windows Version 3.5 compiler, use the following switches and libraries:
icc /Gd /Gm /Gs /J-
imqb23in imq{c|s}23in
Notes:
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:
cl -MD
imqb23vn imq{c|s}23vn
If you are using the IBM z/OS C/C++ Version 2 Release 4 or later compiler, use the following switches and libraries:
/cxx
imqs23dm imqb23dm, or imqs23dr imqb23dr, or imqs23dc imqb23dc
and the corresponding DLL load modules are:
imqs23im imqb23im, or imqs23ir imqb23ir, or imqs23ic imqb23ic