IA64 (IPF) platform
The following is an example of how to build the sample program amqsput0 as a client application in a non-threaded 32-bit environment:
c89 -Wl,+b,: +e -D_HPUX_SOURCE -o amqsputc_32 amqsput0.c -I/opt/mqm/inc -L/opt/mqm/lib -L/usr/lib/hpux32 -lmqicThe following is an example of how to build the sample program amqsput0 as a client application in a threaded 32-bit environment:
c89 -Wl,+b,: +e -D_HPUX_SOURCE -o amqsputc_32_r amqsput0.c -I/opt/mqm/inc -L/opt/mqm/lib -L/usr/lib/hpux32 -lmqic_r -lpthreadThe following is an example of how to build the sample program amqsput0 as a client application in a non-threaded 64-bit environment:
c89 +DD64 +e -Wl,+noenvvar -D_HPUX_SOURCE -o amqsputc_64 amqsput0.c -I/opt/mqm/inc -L/opt/mqm/lib64 -L/usr/lib/hpux64 -lmqicThe following is an example of how to build the sample program amqsput0 as a client application in a threaded 64-bit environment:
c89 +DD64 +e -Wl,+noenvvar -D_HPUX_SOURCE -o amqsputc_64_r amqsput0.c -I/opt/mqm/inc -L/opt/mqm/lib64 -L/usr/lib/hpux64 -lmqic_r -lpthreadThe following is an example of how to build the sample program amqsput0 as a server application in a non-threaded 32-bit environment:
c89 -Wl,+b,: +e -D_HPUX_SOURCE -o amqsput_32 amqsput0.c -I/opt/mqm/inc -L/opt/mqm/lib -L/usr/lib/hpux32 -lmqmThe following is an example of how to build the sample program amqsput0 as a server application in a threaded 32-bit environment:
c89 -Wl,+b,: +e -D_HPUX_SOURCE -o amqsput_32_r amqsput0.c -I/opt/mqm/inc -L/opt/mqm/lib -L/usr/lib/hpux32 -lmqm_r -lpthreadThe following is an example of how to build the sample program amqsput0 as a server application in a non-threaded 64-bit environment:
c89 +DD64 +e -Wl,+noenvvar -D_HPUX_SOURCE -o amqsput_64 amqsput0.c -I/opt/mqm/inc -L/opt/mqm/lib64 -L/usr/lib/hpux64 -lmqmThe following is an example of how to build the sample program amqsput0 as a server application in a threaded 64-bit environment:
c89 +DD64 +e -Wl,+noenvvar -D_HPUX_SOURCE -o amqsput_64_r amqsput0.c -I/opt/mqm/inc -L/opt/mqm/lib64 -L/usr/lib/hpux64 -lmqm_r -lpthreadThe following is an example of how to build a client exit cliexit in a non-threaded 32-bit environment:
c89 +e +z -c -D_HPUX_SOURCE -o cliexit.o cliexit.c -I/opt/mqm/inc ld +b: -b cliexit.o +ee MQStart -o /var/mqm/exits/cliexit_32 -L/opt/mqm/lib \ -L/usr/lib/hpux32 -lmqicThe following is an example of how to build a client exit cliexit in a threaded 32-bit environment:
c89 +e +z -c -D_HPUX_SOURCE -o cliexit.o cliexit.c -I/opt/mqm/inc ld +b: -b cliexit.o +ee MQStart -o /var/mqm/exits/cliexit_32_r -L/opt/mqm/lib \ -L/usr/lib/hpux32 -lmqic_r -lpthreadThe following is an example of how to build a client exit cliexit in a non-threaded 64-bit environment:
c89 +DD64 +e +z -c -D_HPUX_SOURCE -o cliexit.o cliexit.c -I/opt/mqm/inc ld -b +noenvvar cliexit.o +ee MQStart -o /var/mqm/exits64/cliexit_64 \ -L/opt/mqm/lib64 -L/usr/lib/hpux64 -lmqicThe following is an example of how to build a client exit cliexit in a threaded 64-bit environment:
c89 +DD64 +e +z -c -D_HPUX_SOURCE -o cliexit.o cliexit.c -I/opt/mqm/inc ld -b +noenvvar cliexit.o +ee MQStart -o /var/mqm/exits/cliexit_64_r \ -L/opt/mqm/lib64 -L/usr/lib/hpux64 -lmqic_r -lpthreadThe following is an example of how to build a server exit srvexit in a non-threaded 32-bit environment:
c89 +e +z -c -D_HPUX_SOURCE -o srvexit.o srvexit.c -I/opt/mqm/inc ld +b: -b srvexit.o +ee MQStart -o /var/mqm/exits/srvexit_32 -L/opt/mqm/lib \ -L/usr/lib/hpux32 -lmqmThe following is an example of how to build a server exit srvexit in a threaded 32-bit environment:
c89 +e +z -c -D_HPUX_SOURCE -o srvexit.o srvexit.c -I/opt/mqm/inc ld +b: -b srvexit.o +ee MQStart -o /var/mqm/exits/srvexit_32_r -L/opt/mqm/lib \ -L/usr/lib/hpux32 -lmqm_r -lpthreadThe following is an example of how to build a server exit srvexit in a non-threaded 64-bit environment:
c89 +DD64 +e +z -c -D_HPUX_SOURCE -o srvexit.o srvexit.c -I/opt/mqm/inc ld -b +noenvvar srvexit.o +ee MQStart -o /var/mqm/exits64/srvexit_64 \ -L/opt/mqm/lib64 -L/usr/lib/hpux64 -lmqmThe following is an example of how to build a server exit srvexit in a threaded 64-bit environment:
c89 +DD64 +e +z -c -D_HPUX_SOURCE -o srvexit.o srvexit.c -I/opt/mqm/inc ld -b +noenvvar srvexit.o +ee MQStart -o /var/mqm/exits/srvexit_64_r \ -L/opt/mqm/lib64 -L/usr/lib/hpux64 -lmqm_r -lpthread
Parent topic:
Preparing C programs
fg16290_