Building C++ programs on AIX
Build IBM MQ C++ programs on AIX using the XL C Enterprise Edition compiler.
Client
MQ_INSTALLATION_PATH represents the high-level directory in which IBM MQ is installed.
- 32-bit unthreaded application
-
xlC -o imqsputc_32 imqsput.cpp -qchars=signed -I MQ_INSTALLATION_PATH/inc -L MQ_INSTALLATION_PATH/lib -limqc23ia -limqb23ia -lmqic
- 32-bit threaded application
-
xlC_r -o imqsputc_32_r imqsput.cpp -qchars=signed -I MQ_INSTALLATION_PATH/inc -L MQ_INSTALLATION_PATH/lib -limqc23ia_r -limqb23ia_r -lmqic_r
- 64-bit unthreaded application
-
xlC -q64 -o imqsputc_64 imqsput.cpp -qchars=signed -I MQ_INSTALLATION_PATH/inc -L MQ_INSTALLATION_PATH/lib64 -limqc23ia -limqb23ia -lmqic
- 64-bit threaded application
-
xlC_r -q64 -o imqsputc_64_r imqsput.cpp -qchars=signed -I MQ_INSTALLATION_PATH/inc -L MQ_INSTALLATION_PATH/lib64 -limqc23ia_r -limqb23ia_r -lmqic_r
Server
MQ_INSTALLATION_PATH represents the high-level directory in which IBM MQ is installed.
- 32-bit unthreaded application
-
xlC -o imqsput_32 imqsput.cpp -qchars=signed -I MQ_INSTALLATION_PATH/inc -L MQ_INSTALLATION_PATH/lib -limqs23ia -limqb23ia -lmqm
- 32-bit threaded application
-
xlC_r -o imqsput_32_r imqsput.cpp -qchars=signed -I MQ_INSTALLATION_PATH/inc -L MQ_INSTALLATION_PATH/lib -limqs23ia_r -limqb23ia_r -lmqm_r
- 64-bit unthreaded application
-
xlC -q64 -o imqsput_64 imqsput.cpp -qchars=signed -I MQ_INSTALLATION_PATH/inc -L MQ_INSTALLATION_PATH/lib64 -limqs23ia -limqb23ia -lmqm
- 64-bit threaded application
-
xlC_r -q64 -o imqsput_64_r imqsput.cpp -qchars=signed -I MQ_INSTALLATION_PATH/inc -L MQ_INSTALLATION_PATH/lib64 -limqs23ia_r -limqb23ia_r -lmqm_r
Parent topic: Building IBM MQ C++ programs