Building applications on x86-64
The following section contains examples of the commands used to build programs in various environments on the x86-64 platform.
- C client application, 32-bit
cc -xarch=386 -mt -o amqsputc_32 amqsput0.c -I/opt/mqm/inc -L/opt/mqm/lib -R/opt/mqm/lib -R/usr/lib/32 -lmqic -lmqmcs -lmqmzse -lsocket -lnsl -ldl- C client application, 64-bit
cc -xarch=amd64 -mt -o amqsputc_64 amqsput0.c -I/opt/mqm/inc -L/opt/mqm/lib64 -R/opt/mqm/lib64 -R/usr/lib/64 -lmqic -lmqmcs -lmqmzse -lsocket -lnsl -ldl- C server application, 32-bit
cc -xarch=386 -mt -o amqsput_32 amqsput0.c -I/opt/mqm/inc -L/opt/mqm/lib -R/opt/mqm/lib -R/usr/lib/32 -lmqm -lmqmcs -lmqmzse -lsocket -lnsl -ldl- C server application, 64-bit
cc -xarch=amd64 -mt -o amqsput_64 amqsput0.c -I/opt/mqm/inc -L/opt/mqm/lib64 -R/opt/mqm/lib64 -R/usr/lib/64 -lmqm -lmqmcs -lmqmzse -lsocket -lnsl -ldl- C++ client application, 32-bit
CC -xarch=386 -mt -o imqsputc_32 imqsput.cpp -I/opt/mqm/inc -L/opt/mqm/lib -R/opt/mqm/lib -R/usr/lib/32 -limqc23as -limqb23as -lmqic -lmqmcs -lmqmzse -lsocket -lnsl -ldl- C++ client application, 64-bit
CC -xarch=amd64 -mt -o imqsputc_64 imqsput.cpp -I/opt/mqm/inc -L/opt/mqm/lib64 -R/opt/mqm/lib64 -R/usr/lib/64 -limqc23as -limqb23as -lmqic -lmqmcs -lmqmzse -lsocket -lnsl -ldl- C++ server application, 32-bit
CC -xarch=386 -mt -o imqsput_32 imqsput.cpp -I/opt/mqm/inc -L/opt/mqm/lib -R/opt/mqm/lib -R/usr/lib/32 -limqs23as -limqb23as -lmqm -lmqmcs -lmqmzse -lsocket -lnsl -ldl- C++ server application, 64-bit
CC -xarch=amd64 -mt -o imqsput_64 imqsput.cpp -I/opt/mqm/inc -L/opt/mqm/lib64 -R/opt/mqm/lib64 -R/usr/lib/64 -limqs23as -limqb23as -lmqm -lmqmcs -lmqmzse -lsocket -lnsl -ldl- C client exit, 32-bit
cc -xarch=386 -mt -G -KPIC -o /var/mqm/exits/cliexit_32 cliexit.c -I/opt/mqm/inc -L/opt/mqm/lib -R/opt/mqm/lib -R/usr/lib/32 -lmqic -lmqmcs -lmqmzse -lsocket -lnsl -ldl- C client exit, 64-bit
cc -xarch=amd64 -mt -G -KPIC -o /var/mqm/exits64/cliexit_64 cliexit.c -I/opt/mqm/inc -L/opt/mqm/lib64 -R/opt/mqm/lib64 -R/usr/lib/64 -lmqic -lmqmcs -lmqmzse -lsocket -lnsl -ldl- C server exit, 32-bit
cc -xarch=386 -mt -G -KPIC -o /var/mqm/exits/srvexit_32 srvexit.c -I/opt/mqm/inc -L/opt/mqm/lib -R/opt/mqm/lib -R/usr/lib/32 -lmqm -lmqmcs -lmqmzse -lsocket -lnsl -ldl- C server exit, 64-bit
cc -xarch=amd64 -mt -G -KPIC -o /var/mqm/exits64/srvexit_64 srvexit.c -I/opt/mqm/inc -L/opt/mqm/lib64 -R/opt/mqm/lib64 -R/usr/lib/64 -lmqm -lmqmcs -lmqmzse -lsocket -lnsl -ldl
Parent topic:
Preparing C programs
fg16570_