Building applications on SPARC
The following section contains examples of the commands used to build programs in various environments on the SPARC platform.
- C client application, 32-bit
cc -xarch=v8plus -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=v9 -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=v8plus -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=v9 -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=v8plus -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=v9 -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=v8plus -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=v9 -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=v8plus -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=v9 -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=v8plus -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=v9 -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
fg16580_